Add --disable-telemetry command-line option

This commit is contained in:
Floris Bos 2020-12-07 13:57:21 +01:00
parent 0f2561cf13
commit 78276cffb7
3 changed files with 26 additions and 15 deletions

View file

@ -431,7 +431,7 @@ void ImageWriter::openFileDialog()
{
#ifndef QT_NO_WIDGETS
QSettings settings;
QString path = settings.value("General/lastpath").toString();
QString path = settings.value("lastpath").toString();
QFileInfo fi(path);
if (path.isEmpty() || !fi.exists() || !fi.isReadable() )
@ -466,9 +466,9 @@ void ImageWriter::onFileSelected(QString filename)
if (fi.isFile())
{
QString path = fi.path();
if (path != settings.value("General/lastpath"))
if (path != settings.value("lastpath"))
{
settings.setValue("General/lastpath", path);
settings.setValue("lastpath", path);
settings.sync();
}