[qet] [3345] Revert 3344

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


Revision: 3345
Author:   scorpio810
Date:     2014-10-05 02:42:20 +0200 (Sun, 05 Oct 2014)
Log Message:
-----------
Revert 3344

Modified Paths:
--------------
    trunk/sources/nomenclature.cpp
    trunk/sources/nomenclature.h

Modified: trunk/sources/nomenclature.cpp
===================================================================
--- trunk/sources/nomenclature.cpp	2014-10-04 15:49:27 UTC (rev 3344)
+++ trunk/sources/nomenclature.cpp	2014-10-05 00:42:20 UTC (rev 3345)
@@ -46,12 +46,8 @@
 		@param true if success
 */
 bool nomenclature::saveToCSVFile() {
-	if(m_list_diagram.isEmpty())
-		QMessageBox msgBox;
-		msgBox.setText("Le titre du projet est vide, veuillez le remplir.");
-		msgBox.exec();
-		return false;
-
+	if(m_list_diagram.isEmpty()) return false;
+	
 	//Process...
 	QString data = tr("NOMENCLATURE : ") + m_project -> title() + "\n\n";
 	data += tr("Folio") +";"+ tr("Sch\351ma") +";"+ tr("D\351signation")+";"+ tr("Label") +";"+ tr("Commententaire") +";"+ tr("Fabriquant") +";"+ tr("Reference") +";"+ tr("Machine-reference\n");
@@ -62,7 +58,7 @@
 			data += rows.at(j);
 		}
 	}
-
+	
 	// SAVE IN FILE
 	QString name = tr("nomenclature_") + QString(m_project  -> title());
 	QString filename = QFileDialog::getSaveFileName(this->m_parent, tr("Enregister sous... "), name, tr("Fichiers csv (*.csv)"));

Modified: trunk/sources/nomenclature.h
===================================================================
--- trunk/sources/nomenclature.h	2014-10-04 15:49:27 UTC (rev 3344)
+++ trunk/sources/nomenclature.h	2014-10-05 00:42:20 UTC (rev 3345)
@@ -42,7 +42,6 @@
 	QETProject *m_project;
 	QList<Diagram *> m_list_diagram;
 	QWidget *m_parent;
-	QMessageBox msgBox;
 	
 	// constructors, destructor
 	public:


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