forked from qt-creator/qt-creator
Utils: Introduce a TemporaryDirectory and TemporaryFile class
Both wrap the corresponding Qt class, but make sure all temporary files or directories are created inside a "master temporary directory". Change-Id: I55461be507c828c965224c02863ea5ed9bbf9498 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
e6017c40fc
commit
c6f90e575e
@@ -2743,7 +2743,7 @@ void DebuggerPluginPrivate::updateDebugWithoutDeployMenu()
|
||||
void DebuggerPluginPrivate::dumpLog()
|
||||
{
|
||||
QString fileName = QFileDialog::getSaveFileName(ICore::mainWindow(),
|
||||
tr("Save Debugger Log"), QDir::tempPath());
|
||||
tr("Save Debugger Log"), Utils::TemporaryDirectory::masterDirectoryPath());
|
||||
if (fileName.isEmpty())
|
||||
return;
|
||||
FileSaver saver(fileName);
|
||||
|
||||
Reference in New Issue
Block a user