summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-16 00:20:19 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-16 00:20:19 +0200
commit1438a922bf573637f8a2973a1c75ab3be73bad4e (patch)
tree9759d176ec9482a0407ceaaf3fea6dd35f7f7087 /src/gui
parent12bceb8d721b602191a255a0ed167dfab435f960 (diff)
downloadtwinkle-1438a922bf573637f8a2973a1c75ab3be73bad4e.tar
twinkle-1438a922bf573637f8a2973a1c75ab3be73bad4e.tar.gz
twinkle-1438a922bf573637f8a2973a1c75ab3be73bad4e.tar.lz
twinkle-1438a922bf573637f8a2973a1c75ab3be73bad4e.tar.xz
twinkle-1438a922bf573637f8a2973a1c75ab3be73bad4e.zip
Fix profile selection in selectprofileform
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/selectprofileform.cpp10
1 files changed, 7 insertions, 3 deletions
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()) {