diff options
author | RedsonBr140 <redson@riseup.net> | 2022-11-14 21:09:37 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 21:09:37 -0300 |
commit | 1e4ee02cbc0f44f390b33b5b85418f4eadffbae4 (patch) | |
tree | 6191253cc260c8ee6a5030d4b73f3cbed642d973 /launcher/icons | |
parent | be765f8d883697d2284343f9ee6c858987622857 (diff) | |
parent | cedc7754d96e4c53d50bcce2b2a0f139b840f3d0 (diff) | |
download | PrismLauncher-1e4ee02cbc0f44f390b33b5b85418f4eadffbae4.tar.gz PrismLauncher-1e4ee02cbc0f44f390b33b5b85418f4eadffbae4.tar.bz2 PrismLauncher-1e4ee02cbc0f44f390b33b5b85418f4eadffbae4.zip |
Merge branch 'PrismLauncher:develop' into menu-themes
Diffstat (limited to 'launcher/icons')
-rw-r--r-- | launcher/icons/IconList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/icons/IconList.cpp b/launcher/icons/IconList.cpp index 3a223d1b..01043ad2 100644 --- a/launcher/icons/IconList.cpp +++ b/launcher/icons/IconList.cpp @@ -242,7 +242,7 @@ Qt::DropActions IconList::supportedDropActions() const return Qt::CopyAction; } -bool IconList::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) +bool IconList::dropMimeData(const QMimeData *data, Qt::DropAction action, [[maybe_unused]] int row, [[maybe_unused]] int column, [[maybe_unused]] const QModelIndex &parent) { if (action == Qt::IgnoreAction) return true; @@ -302,7 +302,7 @@ QVariant IconList::data(const QModelIndex &index, int role) const int IconList::rowCount(const QModelIndex &parent) const { - return icons.size(); + return parent.isValid() ? 0 : icons.size(); } void IconList::installIcons(const QStringList &iconFiles) |