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?");
}
if (QFile::exists(outputFile)) {
// Show the file dialog again if the user does not want to overwrite the file
- if (KMessageBox::questionYesNo(this, i18n("File already exists.\nDo you want to overwrite it?")) == KMessageBox::No)
+ if (KMessageBox::questionYesNo(this, i18n("File %1 already exists.\nDo you want to overwrite it?", outputFile)) == KMessageBox::No)
return saveFileAs();
}
return saveFileAs(outputFile);