Drawing: reset the default template to the classic one

This commit is contained in:
Yorik van Havre 2015-02-10 14:05:14 -02:00
parent b67405e16e
commit 9f40bf1da9

View File

@ -175,8 +175,11 @@ Gui::Action * CmdDrawingNewPage::createAction(void)
a->setProperty("Template", dir.absoluteFilePath(dir[i]));
if (id == 3) {
defaultAction = a;
defaultId = pcAction->actions().size() - 1;
if (!defaultAction) {
// set the first found A3 (A3_Landscape) as default
defaultAction = a;
defaultId = pcAction->actions().size() - 1;
}
}
}
}