Commit 4282289d authored by Burak Hancerli's avatar Burak Hancerli 🍻 Committed by Nate Graham
Browse files

Fix a small issue related with "Up" button

Up button was staying on "Enabled" state even if the user is on the "/"
path.

BUG: 434532
parent c661a5c7
<!DOCTYPE gui SYSTEM "kpartgui.dtd">
<gui name="filelight" version="4">
<gui name="filelight" version="5">
<MenuBar>
<Menu name="file" noMerge="1"><text>&amp;Scan</text>
<Action name="scan_folder"/>
......@@ -66,7 +66,6 @@
<Action name="scan_root"/>
<Action name="scan_recent"/>
<Action name="scan_rescan"/>
<Action name="go_up"/>
<Action name="clear_location"/>
<Action name="location_bar"/>
<Action name="go"/>
......
......@@ -310,6 +310,7 @@ void MainWindow::scanCompleted()
action("go_up")->setToolTip(QString());
}
else {
action("go_up")->setEnabled(true);
action("go_up")->setStatusTip(KIO::upUrl(url).path());
action("go_up")->setToolTip(KIO::upUrl(url).path());
}
......
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