Commit cad2c981 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

[Icon View] Don't open modules twice on clicking

changeModule is called on activated and clicked now.

(cherry picked from commit 8e28113e)
parent bbe3c594
......@@ -149,11 +149,17 @@ void IconMode::searchChanged(const QString &text)
void IconMode::changeModule(const QModelIndex &activeModule)
// Already loaded?
MenuItem *item =<MenuItem *>();
if(d->moduleView->activeModule() == &item->item())
changeModuleWithArgs(activeModule, QStringList());
void IconMode::changeModuleWithArgs(const QModelIndex &activeModule, const QStringList &args)
// Always reopen because args might have changed
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment