mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Merge branch 'Applications/16.12'
This commit is contained in:
commit
97415005de
|
@ -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")));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue