[qet] [2744] close dialog: fix wrong title

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2744
Author:   blacksun
Date:     2014-01-16 10:44:11 +0100 (Thu, 16 Jan 2014)
Log Message:
-----------
close dialog: fix wrong title

Modified Paths:
--------------
    trunk/sources/projectview.cpp

Modified: trunk/sources/projectview.cpp
===================================================================
--- trunk/sources/projectview.cpp	2014-01-15 05:33:28 UTC (rev 2743)
+++ trunk/sources/projectview.cpp	2014-01-16 09:44:11 UTC (rev 2744)
@@ -238,7 +238,10 @@
 		return(QMessageBox::Discard);
 	}
 
-	int close_dialog = QMessageBox::question(this, project()->title(),
+	QString title = project()->title();
+	if (title.isEmpty()) title = "QElectroTech";
+
+	int close_dialog = QMessageBox::question(this, title,
 								   tr("Le projet \340 \351t\351 modifi\351.\n"
 									  "Voulez-vous enregistrer les modifications ?"),
 								   QMessageBox::Save | QMessageBox::Discard


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/