Various patches: Better windows support, branch sorting, Freedesktop support
authorinsilmaril
Mon, 22 Oct 2007 09:50:03 +0000
changeset 60753c66cb9f5bd
parent 606 84c73902f727
child 608 6cdc2e7b1937
Various patches: Better windows support, branch sorting, Freedesktop support
file.h
imports.cpp
     1.1 --- a/file.h	Mon Oct 22 09:50:03 2007 +0000
     1.2 +++ b/file.h	Mon Oct 22 09:50:03 2007 +0000
     1.3 @@ -16,7 +16,9 @@
     1.4  QString browseDirectory (QWidget *parent=NULL, const QString &caption="");
     1.5  bool reallyWriteDirectory(const QString &dir);
     1.6  
     1.7 -QString makeUniqueDir (bool &,QString);
     1.8 +QString makeTmpDir (bool &ok, QString prefix);
     1.9 +bool isInTmpDir (QString fn);
    1.10 +QString makeUniqueDir (bool &ok, QString);
    1.11  void removeDir(QDir);
    1.12  void copyDir (QDir src,QDir dst);
    1.13  void makeSubDirs (const QString &);
     2.1 --- a/imports.cpp	Mon Oct 22 09:50:03 2007 +0000
     2.2 +++ b/imports.cpp	Mon Oct 22 09:50:03 2007 +0000
     2.3 @@ -11,7 +11,7 @@
     2.4  ImportBase::ImportBase()
     2.5  {
     2.6  	bool ok;
     2.7 -    tmpDir.setPath (makeUniqueDir(ok,"/tmp/vym-import-XXXXXX"));
     2.8 +    tmpDir.setPath (makeTmpDir(ok,"vym-import"));
     2.9  	if (!tmpDir.exists() || !ok)
    2.10  		QMessageBox::critical( 0, QObject::tr( "Error" ),
    2.11  					   QObject::tr("Couldn't access temporary directory\n"));