Skip to content

Commit

Permalink
Omit resetting selection after item activation
Browse files Browse the repository at this point in the history
Fixes #1101
Signed-off-by: Lukas Holecek <hluk@email.cz>
  • Loading branch information
hluk committed Feb 28, 2019
1 parent f084874 commit 95d0394
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/gui/mainwindow.cpp
Expand Up @@ -2289,10 +2289,12 @@ void MainWindow::hideWindow()
// It can be unexpected to have search active or random items selected when
// reopening main window. This resets search and selection after the window
// is closed.
enterBrowseMode();
auto c = browser();
if (c)
c->setCurrent(0);
if ( !browseMode() ) {
enterBrowseMode();
auto c = browser();
if (c)
c->setCurrent(0);
}
}

void MainWindow::minimizeWindow()
Expand Down

0 comments on commit 95d0394

Please sign in to comment.