diff --git a/sleepyhead/oximeterimport.cpp b/sleepyhead/oximeterimport.cpp index acbba050..f8251f70 100644 --- a/sleepyhead/oximeterimport.cpp +++ b/sleepyhead/oximeterimport.cpp @@ -233,7 +233,7 @@ void OximeterImport::on_directImportButton_clicked() ui->tableOxiSessions->clearContents(); QTableWidgetItem * item; - ui->tableOxiSessions->setRowCount(oximodule->oxisessions.size()); + ui->tableOxiSessions->setRowCount(session_count); ui->tableOxiSessions->setSelectionBehavior(QAbstractItemView::SelectRows);