make sure the temp dir where we save exists

wilder-5.14
Marco Martin 12 years ago
parent d307d1e838
commit 755eafdf89
  1. 5
      shell/interactiveconsole.cpp

@ -456,6 +456,11 @@ void InteractiveConsole::saveScriptUrlSelected(int result)
void InteractiveConsole::saveScript(const QUrl &url)
{
//create the folder to save if doesn't exists
QFileInfo info(url.path());
QDir dir;
dir.mkpath(info.absoluteDir().absolutePath());
if (m_editorPart) {
m_editorPart->saveAs(url);
} else {

Loading…
Cancel
Save