From f6c7cdb4c8ba1cfa505cd0220b1be2c67b79604e Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Sun, 6 Jan 2019 17:54:03 +0100 Subject: [PATCH] Better check for QString::isEmpty() than for length() == 0 Not that it really makes any difference ... --- src/gui/qgsconfigureshortcutsdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/qgsconfigureshortcutsdialog.cpp b/src/gui/qgsconfigureshortcutsdialog.cpp index 8bac2cc9276..ecce8afa245 100644 --- a/src/gui/qgsconfigureshortcutsdialog.cpp +++ b/src/gui/qgsconfigureshortcutsdialog.cpp @@ -83,7 +83,7 @@ void QgsConfigureShortcutsDialog::populateActions() continue; } - if ( actionText.length() == 0 ) + if ( actionText.isEmpty() ) { continue; }