┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Miranda <[email protected]>2019-10-20 12:03:10 +0200
committerElvis Angelaccio <[email protected]>2019-10-20 12:03:10 +0200
commite3f1d50b73c95155c1409242baae7be55651d664 (patch)
treed0e34d987793f492cb0c206147e444d7ebfcdaa1 /src
parentc540b4eef12d8251e25c608cd2c04fca724afa6f (diff)
Fix a bug where "Add to Places" remains disabled
Summary: Fix a bug where "Add to Places" doesn't get re-enabled in the context and file menus when nothing is selected after previously selecting a single file that is not a directory or multiple files. Test Plan: Verify the action remains enabled when appropiate Reviewers: #dolphin, elvisangelaccio, meven Reviewed By: meven Subscribers: meven, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D24690
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index ce1746d2b..17d9901f9 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1808,6 +1808,7 @@ void DolphinMainWindow::updateFileAndEditActions()
if (list.isEmpty()) {
stateChanged(QStringLiteral("has_no_selection"));
+ addToPlacesAction->setEnabled(true);
addToPlacesAction->setText(i18nc("@action:inmenu Add current folder to places", "Add '%1' to Places", m_activeViewContainer->placesText()));
} else {
stateChanged(QStringLiteral("has_selection"));