diff options
| author | Méven Car <[email protected]> | 2023-04-03 15:33:57 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-04-03 15:34:16 +0200 |
| commit | e190977a909899dddd748cc0ee32e6fbfe32c4e2 (patch) | |
| tree | d6ef8c7703f89b5ad09d9ec0ec3f6afc47236aca /src/panels/places/placespanel.cpp | |
| parent | 612c1468f63cbd7a8d33519714a81d328e994ead (diff) | |
PlacesPanel: clean some warnings
NO_CHANGELOG
Diffstat (limited to 'src/panels/places/placespanel.cpp')
| -rw-r--r-- | src/panels/places/placespanel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 6467f9c23..bea2f0614 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -14,7 +14,6 @@ #include "dolphin_generalsettings.h" #include "dolphin_placespanelsettings.h" #include "dolphinplacesmodelsingleton.h" -#include "global.h" #include "settings/dolphinsettingsdialog.h" #include "views/draganddrophelper.h" @@ -50,7 +49,7 @@ PlacesPanel::PlacesPanel(QWidget *parent) connect(this, &PlacesPanel::contextMenuAboutToShow, this, &PlacesPanel::slotContextMenuAboutToShow); - connect(this, &PlacesPanel::iconSizeChanged, this, [this](const QSize &newSize) { + connect(this, &PlacesPanel::iconSizeChanged, this, [](const QSize &newSize) { int iconSize = qMin(newSize.width(), newSize.height()); if (iconSize == 0) { // Don't store 0 size, let's keep -1 for default/small/automatic |
