diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-08-01 17:55:07 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-08-01 17:55:07 +0200 |
| commit | e1e367c7eae67471e760673a8149ccf30bac8685 (patch) | |
| tree | 71bff827fe1e617f14b3dd3cc1909cc4b69116c6 /src | |
| parent | 696bb3bc47daf7779a0520dba64affaac3a5b4ad (diff) | |
Added CTRL+Doubleclick on plugin list as well
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d3e3c613..f6cfbfbd 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2920,11 +2920,20 @@ void MainWindow::on_espList_doubleClicked(const QModelIndex &index) if (modInfo->isRegular() || (std::find(flags.begin(), flags.end(), ModInfo::FLAG_OVERWRITE) != flags.end())) {
- displayModInformation(ModInfo::getIndex(m_OrganizerCore.pluginList()->origin(fileName)));
- // workaround to cancel the editor that might have opened because of
- // selection-click
- ui->espList->closePersistentEditor(index);
+ Qt::KeyboardModifiers modifiers = QApplication::queryKeyboardModifiers();
+ if (modifiers.testFlag(Qt::ControlModifier)) {
+ openExplorer_activated();
+ // workaround to cancel the editor that might have opened because of
+ // selection-click
+ ui->espList->closePersistentEditor(index);
+ }
+ else {
+ displayModInformation(ModInfo::getIndex(m_OrganizerCore.pluginList()->origin(fileName)));
+ // workaround to cancel the editor that might have opened because of
+ // selection-click
+ ui->espList->closePersistentEditor(index);
+ }
}
}
}
|
