Save last capture path per remote host. Closes #1094

This commit is contained in:
baldurk
2018-09-06 12:30:03 +01:00
parent 5145478d19
commit cca4d364bf
7 changed files with 39 additions and 21 deletions
+3
View File
@@ -41,6 +41,8 @@ RemoteHost::RemoteHost(const QVariant &var)
friendlyName = map[lit("friendlyName")].toString();
if(map.contains(lit("runCommand")))
runCommand = map[lit("runCommand")].toString();
if(map.contains(lit("lastCapturePath")))
lastCapturePath = map[lit("lastCapturePath")].toString();
serverRunning = connected = busy = versionMismatch = false;
}
@@ -51,6 +53,7 @@ RemoteHost::operator QVariant() const
map[lit("hostname")] = hostname;
map[lit("friendlyName")] = friendlyName;
map[lit("runCommand")] = runCommand;
map[lit("lastCapturePath")] = lastCapturePath;
return map;
}