Commit 70425fed authored by Till Theato's avatar Till Theato

When closing Kdenlive without it being visible (for example via right click on...

When closing Kdenlive without it being visible (for example via right click on panel), raise the window so one can answer the "save changes" dialog

svn path=/trunk/kdenlive/; revision=4766
parent 19b74b51
......@@ -521,6 +521,8 @@ bool MainWindow::queryClose()
if (m_activeDocument && m_activeDocument->isModified() &&
((m_projectList->documentClipList().isEmpty() && !m_activeDocument->url().isEmpty()) ||
!m_projectList->documentClipList().isEmpty())) {
raise();
activateWindow();
QString message;
if (m_activeDocument->url().fileName().isEmpty())
message = i18n("Save changes to document?");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment