# HG changeset patch # User insilmaril # Date 1193046603 0 # Node ID 53c66cb9f5bd4317bb5e0a9100373b744698cfce # Parent 84c73902f7273715ef6bb0c37e80e787b4013e15 Various patches: Better windows support, branch sorting, Freedesktop support diff -r 84c73902f727 -r 53c66cb9f5bd file.h --- a/file.h Mon Oct 22 09:50:03 2007 +0000 +++ b/file.h Mon Oct 22 09:50:03 2007 +0000 @@ -16,7 +16,9 @@ QString browseDirectory (QWidget *parent=NULL, const QString &caption=""); bool reallyWriteDirectory(const QString &dir); -QString makeUniqueDir (bool &,QString); +QString makeTmpDir (bool &ok, QString prefix); +bool isInTmpDir (QString fn); +QString makeUniqueDir (bool &ok, QString); void removeDir(QDir); void copyDir (QDir src,QDir dst); void makeSubDirs (const QString &); diff -r 84c73902f727 -r 53c66cb9f5bd imports.cpp --- a/imports.cpp Mon Oct 22 09:50:03 2007 +0000 +++ b/imports.cpp Mon Oct 22 09:50:03 2007 +0000 @@ -11,7 +11,7 @@ ImportBase::ImportBase() { bool ok; - tmpDir.setPath (makeUniqueDir(ok,"/tmp/vym-import-XXXXXX")); + tmpDir.setPath (makeTmpDir(ok,"vym-import")); if (!tmpDir.exists() || !ok) QMessageBox::critical( 0, QObject::tr( "Error" ), QObject::tr("Couldn't access temporary directory\n"));