1.1 --- a/exports.cpp Tue Sep 05 09:47:14 2006 +0000
1.2 +++ b/exports.cpp Wed Sep 06 12:47:06 2006 +0000
1.3 @@ -1,7 +1,6 @@
1.4 #include <q3filedialog.h>
1.5 -#include <qmessagebox.h>
1.6 +#include <QMessageBox>
1.7 #include <QProcess>
1.8 -//Added by qt3to4:
1.9 #include <QTextStream>
1.10
1.11 #include "exports.h"
1.12 @@ -19,16 +18,16 @@
1.13 ExportBase::ExportBase()
1.14 {
1.15 indentPerDepth=" ";
1.16 - // Create tmpdir
1.17 - // FIXME not neededtmpDir.setPath (makeUniqueDir("/tmp/vym-XXXXXX"));
1.18 - if (!tmpDir.cd ("tmp"))
1.19 - qWarning ("Could not access temporary directory for export");
1.20 - // FIXME there's more needed here...
1.21 + bool ok;
1.22 + tmpDir.setPath (makeUniqueDir(ok,"/tmp/vym-XXXXXX"));
1.23 + if (!tmpDir.exists() || !ok)
1.24 + QMessageBox::critical( 0, QObject::tr( "Error" ),
1.25 + QObject::tr("Couldn't access temporary directory\n"));
1.26 }
1.27
1.28 ExportBase::~ExportBase()
1.29 {
1.30 - // Remove tmpdir
1.31 + // Cleanup tmpdir
1.32 removeDir (tmpDir);
1.33 }
1.34
1.35 @@ -187,9 +186,9 @@
1.36 p.process();
1.37
1.38 QString ub=vymBaseDir.path()+"/scripts/update-bookmarks";
1.39 - QProcess *proc= new QProcess ();
1.40 + QProcess *proc= new QProcess ;
1.41 proc->start( ub);
1.42 - if (!proc->waitForStarted());
1.43 + if (!proc->waitForStarted())
1.44 {
1.45 QMessageBox::warning(0,
1.46 QObject::tr("Warning"),