From 90365041f463f6c062b154e94fedbf75f96fb880 Mon Sep 17 00:00:00 2001 From: Tannin Date: Tue, 12 May 2015 18:56:44 +0200 Subject: workaround to prevent repeated checking of mods with the mouse was interpreted as double click --- src/modlist.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/modlist.cpp') diff --git a/src/modlist.cpp b/src/modlist.cpp index 8c1d56b7..e05935ef 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -454,6 +454,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) if (m_Profile->modEnabled(modID) != enabled) { m_Profile->setModEnabled(modID, enabled); m_Modified = true; + m_LastCheck.restart(); emit modlist_changed(index, role); } result = true; @@ -665,6 +666,11 @@ void ModList::disconnectSlots() { m_ModStateChanged.disconnect_all_slots(); } +int ModList::timeElapsedSinceLastChecked() const +{ + return m_LastCheck.elapsed(); +} + IModList::ModStates ModList::state(unsigned int modIndex) const { IModList::ModStates result; -- cgit v1.3.1