[qet] [2011] Fix bug on categories reload, and add compilation' s informations in about dialog.

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


Revision: 2011
Author:   cfdev
Date:     2013-01-27 11:34:30 +0100 (Sun, 27 Jan 2013)
Log Message:
-----------
Fix bug on categories reload, and add compilation's informations in about dialog.

Modified Paths:
--------------
    trunk/sources/aboutqet.cpp
    trunk/sources/fileelementscollection.cpp

Modified: trunk/sources/aboutqet.cpp
===================================================================
--- trunk/sources/aboutqet.cpp	2013-01-26 09:22:39 UTC (rev 2010)
+++ trunk/sources/aboutqet.cpp	2013-01-27 10:34:30 UTC (rev 2011)
@@ -69,6 +69,11 @@
 	icon -> setPixmap(QET::Icons::QETOxygenLogo.pixmap(48, 48));
 	// label "QElectroTech"
 	QLabel *title = new QLabel("<span style=\"font-weight:0;font-size:16pt;\">QElectroTech v" + QET::displayedVersion + "</span>");
+	QString sCompilation =	"<br>"+ tr("Compilation: ") +  __DATE__+ " " + __TIME__;
+#ifdef __GNUC__
+	sCompilation += " - GCC " + QString(__VERSION__);
+#endif
+	title -> setText( title->text() + sCompilation);
 	title -> setTextFormat(Qt::RichText);
 	
 	QHBoxLayout *hlayout = new QHBoxLayout();

Modified: trunk/sources/fileelementscollection.cpp
===================================================================
--- trunk/sources/fileelementscollection.cpp	2013-01-26 09:22:39 UTC (rev 2010)
+++ trunk/sources/fileelementscollection.cpp	2013-01-27 10:34:30 UTC (rev 2011)
@@ -89,7 +89,7 @@
 	Supprime le contenu en memoire de cette collection
 */
 void FileElementsCollection::deleteContent() {
-	delete root;
+	if(!root)	delete root;
 	root = 0;
 }
 


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