Commit 4d2f98cb authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Only navigate to the first document if we do not have a current URL

If we pass in a URL from the command line, there's a chance it will not
be selected by the time the dir lister finished. If that happens, we are
resetting the view to the first item, which hides the image we were
currently viewing. Instead, only navigate to the first item if we do not
have a current URL so we do not change the current URL.
parent 0abf2b58
......@@ -1310,7 +1310,7 @@ void MainWindow::slotDirListerCompleted()
if (d->mContextManager->selectionModel()->hasSelection()) {
} else {
} else if (!d->mContextManager->currentUrl().isValid()) {
// Try to select the first directory in case there are no images to select
Markdown is supported
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