Force user to save new file after openning a template file.
--HG-- branch : develop
This commit is contained in:
parent
d7e9f8cb8b
commit
758fbc714f
|
@ -380,6 +380,11 @@ void TMainWindow::OpenTemplate()
|
||||||
//Use standard path to template files
|
//Use standard path to template files
|
||||||
const QString pathTo = qApp->TapeSettings()->GetPathTemplate();
|
const QString pathTo = qApp->TapeSettings()->GetPathTemplate();
|
||||||
Open(pathTo, filter);
|
Open(pathTo, filter);
|
||||||
|
|
||||||
|
if (m != nullptr)
|
||||||
|
{// The file was opened.
|
||||||
|
SetCurrentFile(""); // Force user to to save new file
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user