diff options
| author | Tannin <devnull@localhost> | 2015-05-12 18:56:44 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-12 18:56:44 +0200 |
| commit | 90365041f463f6c062b154e94fedbf75f96fb880 (patch) | |
| tree | 5f8161811b3245ae85238945c7ab28cea242360c /src/mainwindow.cpp | |
| parent | 183b5715609b309431d8040101635ef9ac0843bf (diff) | |
workaround to prevent repeated checking of mods with the mouse was interpreted
as double click
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 5a2ef6fd..44ccc642 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2538,6 +2538,12 @@ void MainWindow::on_modList_doubleClicked(const QModelIndex &index) if (!index.isValid()) {
return;
}
+
+ if (m_OrganizerCore.modList()->timeElapsedSinceLastChecked() <= QApplication::doubleClickInterval()) {
+ // don't interpret double click if we only just checked a mod
+ return;
+ }
+
QModelIndex sourceIdx = mapToModel(m_OrganizerCore.modList(), index);
if (!sourceIdx.isValid()) {
return;
@@ -2545,7 +2551,6 @@ void MainWindow::on_modList_doubleClicked(const QModelIndex &index) try {
m_ContextRow = m_ModListSortProxy->mapToSource(index).row();
-// displayModInformation(m_ModListSortProxy->mapToSource(index).row());
displayModInformation(sourceIdx.row());
// workaround to cancel the editor that might have opened because of
// selection-click
|
