summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-31 21:24:29 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:18 +0100
commit25a2123e5ffe66715d0a1ec09297ee91a9fcbe1c (patch)
treeb13f943d76833b1c331d63397cf6ed553eeb27c0 /src/mainwindow.cpp
parentf2d8469ed6cd0fafc22097cdba2ee8f325f00513 (diff)
Move keyboard event to PluginListView.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 60e2a1e0..38417df5 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2868,12 +2868,14 @@ void MainWindow::disableSelectedPlugins_clicked()
void MainWindow::sendSelectedPluginsToTop_clicked()
{
- m_OrganizerCore.pluginList()->sendToPriority(ui->espList->selectionModel(), 0);
+ m_OrganizerCore.pluginList()->sendToPriority(
+ ui->espList->indexViewToModel(ui->espList->selectionModel()->selectedRows()), 0);
}
void MainWindow::sendSelectedPluginsToBottom_clicked()
{
- m_OrganizerCore.pluginList()->sendToPriority(ui->espList->selectionModel(), INT_MAX);
+ m_OrganizerCore.pluginList()->sendToPriority(
+ ui->espList->indexViewToModel(ui->espList->selectionModel()->selectedRows()), INT_MAX);
}
void MainWindow::sendSelectedPluginsToPriority_clicked()
@@ -2884,7 +2886,8 @@ void MainWindow::sendSelectedPluginsToPriority_clicked()
0, 0, INT_MAX, 1, &ok);
if (!ok) return;
- m_OrganizerCore.pluginList()->sendToPriority(ui->espList->selectionModel(), newPriority);
+ m_OrganizerCore.pluginList()->sendToPriority(
+ ui->espList->indexViewToModel(ui->espList->selectionModel()->selectedRows()), newPriority);
}
void MainWindow::updateAvailable()