imports.cpp
changeset 384 73bfe41502d9
parent 366 e95081c21da2
child 393 053b8645e3e9
     1.1 --- a/imports.cpp	Tue Sep 05 09:47:14 2006 +0000
     1.2 +++ b/imports.cpp	Thu Sep 14 11:38:17 2006 +0000
     1.3 @@ -14,11 +14,11 @@
     1.4  
     1.5  ImportBase::ImportBase()
     1.6  {
     1.7 -	// Create tmpdir
     1.8 -	// FIXME not neededtmpDir.setPath (makeUniqueDir("/tmp/vym-XXXXXX"));
     1.9 -	if (!tmpDir.cd ("tmp"))
    1.10 -		qWarning ("Could not access temporary directory for export");
    1.11 -		// FIXME
    1.12 +	bool ok;
    1.13 +    tmpDir.setPath (makeUniqueDir(ok,"/tmp/vym-XXXXXX"));
    1.14 +	if (!tmpDir.exists() || !ok)
    1.15 +		QMessageBox::critical( 0, QObject::tr( "Error" ),
    1.16 +					   QObject::tr("Couldn't access temporary directory\n"));
    1.17  }
    1.18  
    1.19