summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/ModEditDialogCommon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/dialogs/ModEditDialogCommon.cpp')
-rw-r--r--gui/dialogs/ModEditDialogCommon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/dialogs/ModEditDialogCommon.cpp b/gui/dialogs/ModEditDialogCommon.cpp
index 35942374..4a2115d8 100644
--- a/gui/dialogs/ModEditDialogCommon.cpp
+++ b/gui/dialogs/ModEditDialogCommon.cpp
@@ -4,7 +4,7 @@
bool lastfirst(QModelIndexList &list, int &first, int &last)
{
- if (!list.size())
+ if (list.isEmpty())
return false;
first = last = list[0].row();
for (auto item : list)
@@ -37,4 +37,4 @@ void showWebsiteForMod(QWidget *parentDlg, Mod &m)
QObject::tr("The mod author didn't provide a website link for this mod."),
QMessageBox::Warning);
}
-} \ No newline at end of file
+}