pick a better temp file location

so the following move would not try to cross device boundaries
This commit is contained in:
Oswald Buddenhagen
2011-03-11 13:46:56 +01:00
parent bcde880d92
commit fa3b8cdfe5
+1 -1
View File
@@ -343,7 +343,7 @@ bool BinEditor::save(const QString &oldFileName, const QString &newFileName)
if (oldFileName != newFileName) {
QString tmpName;
{
QTemporaryFile tmp;
QTemporaryFile tmp(newFileName + QLatin1String("_XXXXXX.new"));
if (!tmp.open())
return false;
tmpName = tmp.fileName();