From 1438a922bf573637f8a2973a1c75ab3be73bad4e Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Tue, 16 Jun 2015 00:20:19 +0200 Subject: Fix profile selection in selectprofileform --- src/gui/selectprofileform.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/selectprofileform.cpp b/src/gui/selectprofileform.cpp index 8fc395e..e648c39 100644 --- a/src/gui/selectprofileform.cpp +++ b/src/gui/selectprofileform.cpp @@ -231,9 +231,13 @@ void SelectProfileForm::runProfile() for (int i = 0; i < profileListView->count(); i++) { QListWidgetItem* item = profileListView->item(i); - QString profile = item->text(); - profile.append(USER_FILE_EXT); - selectedProfiles.push_back(profile.toStdString()); + + if (item->checkState() == Qt::Checked) + { + QString profile = item->text(); + profile.append(USER_FILE_EXT); + selectedProfiles.push_back(profile.toStdString()); + } } if (selectedProfiles.empty()) { -- cgit v1.2.3