Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

ask before overwriting

svn path=/branches/KDE4/; revision=2033
parent 59373ab5
......@@ -21,6 +21,7 @@
#include <KStandardDirs>
#include <KDebug>
#include <KMessageBox>
#include "kdenlivesettings.h"
#include "renderwidget.h"
......@@ -38,6 +39,11 @@ void RenderWidget::slotUpdateButtons() {
}
void RenderWidget::slotExport() {
QFile f(m_view.out_file->url().path());
if (f.exists()) {
if (KMessageBox::warningYesNo(this, i18n("File already exists. Doy you want to overwrite it ?")) != KMessageBox::Yes)
return;
}
emit doRender(m_view.out_file->url().path(), QStringList(), m_view.zone_only->isChecked(), m_view.play_after->isChecked());
}
......
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