forked from qt-creator/qt-creator
pick a better temp file location
so the following move would not try to cross device boundaries
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user