mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 20:20:02 +00:00
Merge pull request #646
1e7fbe5
DaemonManager: fix issues with spaces in path (Jaquee)
This commit is contained in:
commit
5a0adb18d3
1 changed files with 7 additions and 5 deletions
|
@ -212,15 +212,17 @@ bool DaemonManager::sendCommand(const QString &cmd,bool testnet) const
|
||||||
bool DaemonManager::sendCommand(const QString &cmd,bool testnet, QString &message) const
|
bool DaemonManager::sendCommand(const QString &cmd,bool testnet, QString &message) const
|
||||||
{
|
{
|
||||||
QProcess p;
|
QProcess p;
|
||||||
QString external_cmd = m_monerod + " " + cmd;
|
QStringList external_cmd;
|
||||||
qDebug() << "sending external cmd: " << external_cmd;
|
external_cmd << cmd;
|
||||||
|
|
||||||
// Add testnet flag if needed
|
// Add testnet flag if needed
|
||||||
if (testnet)
|
if (testnet)
|
||||||
external_cmd += " --testnet";
|
external_cmd << "--testnet";
|
||||||
external_cmd += "\n";
|
|
||||||
|
|
||||||
p.start(external_cmd);
|
qDebug() << "sending external cmd: " << external_cmd;
|
||||||
|
|
||||||
|
|
||||||
|
p.start(m_monerod, external_cmd);
|
||||||
|
|
||||||
bool started = p.waitForFinished(-1);
|
bool started = p.waitForFinished(-1);
|
||||||
message = p.readAllStandardOutput();
|
message = p.readAllStandardOutput();
|
||||||
|
|
Loading…
Reference in a new issue