Force user to save new file after openning a template file.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-08 12:57:00 +03:00
parent d7e9f8cb8b
commit 758fbc714f

View File

@ -380,6 +380,11 @@ void TMainWindow::OpenTemplate()
//Use standard path to template files
const QString pathTo = qApp->TapeSettings()->GetPathTemplate();
Open(pathTo, filter);
if (m != nullptr)
{// The file was opened.
SetCurrentFile(""); // Force user to to save new file
}
}
else
{