[qet] qet/qet: [4875] Minor, protect mode : improve message |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4875
Author: scorpio810
Date: 2017-01-26 17:05:43 +0100 (Thu, 26 Jan 2017)
Log Message:
-----------
Minor, protect mode : improve message
Modified Paths:
--------------
trunk/sources/qetproject.cpp
Modified: trunk/sources/qetproject.cpp
===================================================================
--- trunk/sources/qetproject.cpp 2017-01-26 10:09:07 UTC (rev 4874)
+++ trunk/sources/qetproject.cpp 2017-01-26 16:05:43 UTC (rev 4875)
@@ -83,7 +83,6 @@
m_auto_conductor (true ),
m_elements_collection (nullptr)
{
- QSettings settings;
//Open the file
QFile project_file(path);
if (!project_file.open(QIODevice::ReadOnly | QIODevice::Text))
@@ -802,7 +801,7 @@
return(QString("the file %1 was opened read-only and thus will not be written").arg(file_path_));
if (settings.value("qetproject/readonly", true).toBool()){
- return(QString("the file %1 was opened read-only and thus will not be written").arg(file_path_));
+ return(QString("the file %1 was opened read-only and thus will not be written, see QET settings for disable files protection").arg(file_path_));
}
//Get the project in xml