]> cloud.milkyroute.net Git - dolphin.git/commitdiff
PlacesPanel: clean some warnings
authorMéven Car <meven@kde.org>
Mon, 3 Apr 2023 13:33:57 +0000 (15:33 +0200)
committerMéven Car <meven@kde.org>
Mon, 3 Apr 2023 13:34:16 +0000 (15:34 +0200)
NO_CHANGELOG

src/panels/places/placespanel.cpp

index 6467f9c230ceabe09b396bb9dd04ff381d190d04..bea2f0614f54f4a5d037c1bb0c9e54f05addd9f3 100644 (file)
@@ -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