|
|
QuantaView *view = ViewManager::ref()->isOpened(url); | QuantaView *view = ViewManager::ref()->isOpened(url); |
if (!view || newfile) | if (!view || newfile) |
{ | { |
|
w = ViewManager::ref()->activeDocument(); |
|
if (w && !newfile && !w->isModified() && w->isUntitled() && !w->busy) |
|
ViewManager::ref()->removeActiveView(false); |
|
|
/* | /* |
// no modi and new -> we can remove !!!! | // no modi and new -> we can remove !!!! |
w = ViewManager::ref()->activeDocument(); | w = ViewManager::ref()->activeDocument(); |