Do not update the recent files list in export/test mode.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-12-09 13:37:38 +02:00
parent ca24b201e1
commit 0c731ea406

View File

@ -2880,7 +2880,7 @@ void MainWindow::setCurrentFile(const QString &fileName)
curFile = fileName;
qApp->getUndoStack()->setClean();
if (not curFile.isEmpty())
if (not curFile.isEmpty() && VApplication::IsGUIMode())
{
qCDebug(vMainWindow, "Updating recent file list.");
VSettings *settings = qApp->ValentinaSettings();