mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
PlacesPanel: clean some warnings
NO_CHANGELOG
This commit is contained in:
parent
612c1468f6
commit
e190977a90
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue