shared: common: setPdfViewer(): Fix misplaced QSettings

This commit is contained in:
Albert S. 2022-07-24 23:57:38 +02:00
parent bf1265fe3a
commit 5996971195
1 changed files with 1 additions and 1 deletions

View File

@ -58,9 +58,9 @@ void Common::setPdfViewer()
value = qpdfviewPath + " %f#%p";
}
QSettings settings;
if(value != "")
{
QSettings settings;
settings.setValue(SETTINGS_KEY_PDFVIEWER, value);
}
}