aboutsummaryrefslogtreecommitdiff
path: root/launcher/dialogs/IconPickerDialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-10-25 23:51:42 +0200
committerPetr Mrázek <peterix@gmail.com>2021-10-25 23:51:42 +0200
commitae4939e0d2e8774b823865cce0a8e822d04673a5 (patch)
tree921873298ec1d39cedb68e1d64c3340122620a93 /launcher/dialogs/IconPickerDialog.cpp
parent85ecbad46755d42e3e0682dfe24e587ee3157565 (diff)
downloadPrismLauncher-ae4939e0d2e8774b823865cce0a8e822d04673a5.tar.gz
PrismLauncher-ae4939e0d2e8774b823865cce0a8e822d04673a5.tar.bz2
PrismLauncher-ae4939e0d2e8774b823865cce0a8e822d04673a5.zip
GH-4164 Assign instances to groups using drag & drop
Diffstat (limited to 'launcher/dialogs/IconPickerDialog.cpp')
-rw-r--r--launcher/dialogs/IconPickerDialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/dialogs/IconPickerDialog.cpp b/launcher/dialogs/IconPickerDialog.cpp
index 3878d8e3..a1c432a8 100644
--- a/launcher/dialogs/IconPickerDialog.cpp
+++ b/launcher/dialogs/IconPickerDialog.cpp
@@ -22,7 +22,7 @@
#include "IconPickerDialog.h"
#include "ui_IconPickerDialog.h"
-#include "groupview/InstanceDelegate.h"
+#include "instanceview/InstanceDelegate.h"
#include "icons/IconList.h"
#include "icons/IconUtils.h"
@@ -126,8 +126,9 @@ void IconPickerDialog::selectionChanged(QItemSelection selected, QItemSelection
return;
QString key = selected.first().indexes().first().data(Qt::UserRole).toString();
- if (!key.isEmpty())
+ if (!key.isEmpty()) {
selectedIconKey = key;
+ }
}
int IconPickerDialog::execWithSelection(QString selection)
@@ -141,8 +142,7 @@ int IconPickerDialog::execWithSelection(QString selection)
contentsWidget->selectionModel()->select(
model_index, QItemSelectionModel::Current | QItemSelectionModel::Select);
- QMetaObject::invokeMethod(this, "delayed_scroll", Qt::QueuedConnection,
- Q_ARG(QModelIndex, model_index));
+ QMetaObject::invokeMethod(this, "delayed_scroll", Qt::QueuedConnection, Q_ARG(QModelIndex, model_index));
return QDialog::exec();
}