forked from Public/monero-gui
new wallet wizard: wallet created in temporary directory and moved to
the destination at the final step
This commit is contained in:
24
oshelper.cpp
Normal file
24
oshelper.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "oshelper.h"
|
||||
#include <QTemporaryFile>
|
||||
#include <QDir>
|
||||
|
||||
OSHelper::OSHelper(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QString OSHelper::temporaryFilename() const
|
||||
{
|
||||
QString tempFileName;
|
||||
{
|
||||
QTemporaryFile f;
|
||||
f.open();
|
||||
tempFileName = f.fileName();
|
||||
}
|
||||
return tempFileName;
|
||||
}
|
||||
|
||||
QString OSHelper::temporaryPath() const
|
||||
{
|
||||
return QDir::tempPath();
|
||||
}
|
||||
Reference in New Issue
Block a user