mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-17 13:37:18 +03:00
reset selection, because when a list item is selected and treeview is used, no restore is possible with the collapse counter we use
This commit is contained in:
parent
ad5cfe306c
commit
9636a11923
@ -75,6 +75,8 @@ QAction *DoubleTreeWidget::setupAppearanceAction(const char *name,
|
||||
action->setChecked(Settings::instance()->value(id, defaultValue).toBool());
|
||||
connect(action, &QAction::triggered, this, [this, id](bool checked) {
|
||||
Settings::instance()->setValue(id, checked);
|
||||
mSelectedFile.filename =
|
||||
""; // When switching view, it is not possible to restore
|
||||
RepoView::parentView(this)->refresh();
|
||||
});
|
||||
return action;
|
||||
|
Loading…
Reference in New Issue
Block a user