┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2017-01-14 13:00:33 +0100
committerElvis Angelaccio <[email protected]>2017-01-14 13:00:33 +0100
commit97415005de040885cb63ea01fdb879e20226a2f2 (patch)
tree7c8f10b14692625c1f9a1c0c0092f1118294aeb7 /src/views
parentc1eeb0e115b6074e296892c95192cf464c0c83c9 (diff)
parent85121a8115c5a8b6b7c0a01073663d51bd64e6ae (diff)
Merge branch 'Applications/16.12'
Diffstat (limited to 'src/views')
-rw-r--r--src/views/dolphinviewactionhandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp
index 5c0b49cd2..273bcdd76 100644
--- a/src/views/dolphinviewactionhandler.cpp
+++ b/src/views/dolphinviewactionhandler.cpp
@@ -482,6 +482,12 @@ void DolphinViewActionHandler::slotHiddenFilesShownChanged(bool shown)
QAction* showHiddenFilesAction = m_actionCollection->action(QStringLiteral("show_hidden_files"));
showHiddenFilesAction->setChecked(shown);
+ // #374508: don't overwrite custom icons.
+ const QString iconName = showHiddenFilesAction->icon().name();
+ if (!iconName.isEmpty() && iconName != QLatin1String("visibility") && iconName != QLatin1String("hint")) {
+ return;
+ }
+
showHiddenFilesAction->setIcon(QIcon::fromTheme(shown ? QStringLiteral("visibility") : QStringLiteral("hint")));
}