mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
KeysFiles: relative file path support
This commit is contained in:
parent
c137a6ea36
commit
eb924a34d1
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@
|
|||
WalletKeysFiles::WalletKeysFiles(const QFileInfo &info, quint8 networkType, QString address)
|
||||
: m_fileName(info.fileName())
|
||||
, m_modified(info.lastModified().toSecsSinceEpoch())
|
||||
, m_path(QDir::toNativeSeparators(info.absoluteFilePath()))
|
||||
, m_path(QDir::toNativeSeparators(info.filePath()))
|
||||
, m_networkType(networkType)
|
||||
, m_address(std::move(address))
|
||||
{
|
||||
|
@ -120,7 +120,7 @@ void WalletKeysFilesModel::findWallets(const QString &moneroAccountsDir)
|
|||
continue;
|
||||
}
|
||||
|
||||
QString wallet(keysFileinfo.absolutePath() + QDir::separator() + keysFileinfo.baseName());
|
||||
QString wallet(keysFileinfo.path() + QDir::separator() + keysFileinfo.baseName());
|
||||
quint8 networkType = NetworkType::MAINNET;
|
||||
QString address = QString("");
|
||||
|
||||
|
|
Loading…
Reference in a new issue