[qet] qet/qet: [5609] Minor fix previous commits

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


Revision: 5609
Author:   scorpio810
Date:     2018-11-25 11:47:36 +0100 (Sun, 25 Nov 2018)
Log Message:
-----------
Minor fix previous commits

Modified Paths:
--------------
    trunk/sources/qetapp.cpp
    trunk/sources/ui/configpage/generalconfigurationpage.cpp

Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp	2018-11-25 10:33:30 UTC (rev 5608)
+++ trunk/sources/qetapp.cpp	2018-11-25 10:47:36 UTC (rev 5609)
@@ -564,7 +564,7 @@
 		if (m_user_custom_tbt_dir.isEmpty())
 	{
 			QSettings settings;
-			QString path = settings.value("elements-collections/custom-tbt-collection-path", "default").toString();
+			QString path = settings.value("elements-collections/custom-tbt-path", "default").toString();
 			if (path != "default" && !path.isEmpty())
 			{
 				QDir dir(path);

Modified: trunk/sources/ui/configpage/generalconfigurationpage.cpp
===================================================================
--- trunk/sources/ui/configpage/generalconfigurationpage.cpp	2018-11-25 10:33:30 UTC (rev 5608)
+++ trunk/sources/ui/configpage/generalconfigurationpage.cpp	2018-11-25 10:47:36 UTC (rev 5609)
@@ -167,18 +167,19 @@
 	if (path != settings.value("elements-collections/custom-collection-path").toString()) {
 		QETApp::resetUserElementsDir();
 	}
-	path = settings.value("elements-collections/custom-tbt-collection-path").toString();
+	
+	path = settings.value("elements-collections/custom-tbt-path").toString();
 	if (ui->m_custom_tbt_path_cb->currentIndex() == 1)
 	{
 		QString path = ui->m_custom_tbt_path_cb->currentText();
 		QDir dir(path);
-		settings.setValue("elements-collections/custom-tbt-collection-path",
+		settings.setValue("elements-collections/custom-tbt-path",
 						  dir.exists() ? path : "default");
 	}
 	else {
-		settings.setValue("elements-collections/custom-tbt-collection-path", "default");
+		settings.setValue("elements-collections/custom-tbt-path", "default");
 	}
-	if (path != settings.value("elements-collections/custom-tbt-collection-path").toString()) {
+	if (path != settings.value("elements-collections/custom-tbt-path").toString()) {
 		QETApp::resetUserElementsDir();
 	}
 }


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