r23967 by jghali - Fix comparison with empty string

scribus-commit scribus-commit at lists.scribus.net
Thu Jul 30 19:42:52 UTC 2020


Author: jghali
Date: Thu Jul 30 19:42:52 2020
New Revision: 23967

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23967
Log:
Fix comparison with empty string

Modified:
    trunk/Scribus/scribus/ui/mark2item.cpp

Modified: trunk/Scribus/scribus/ui/mark2item.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23967&path=/trunk/Scribus/scribus/ui/mark2item.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/mark2item.cpp	(original)
+++ trunk/Scribus/scribus/ui/mark2item.cpp	Thu Jul 30 19:42:52 2020
@@ -22,7 +22,7 @@
 void Mark2Item::values(QString &label, PageItem* &ptr)
 {
 	QString itemName = ItemList->currentText();
-	if (itemName != "")
+	if (!itemName.isEmpty())
 	{
 		ScribusMainWindow* scmw = (ScribusMainWindow*) parent();
 		ptr = scmw->doc->getItemFromName(itemName);




More information about the scribus-commit mailing list