summaryrefslogtreecommitdiffstats
path: root/src/pvs.cpp
diff options
context:
space:
mode:
authorJohann Latocha2010-08-30 06:47:49 +0200
committerJohann Latocha2010-08-30 06:47:49 +0200
commit5f1e91c7808ebe97b06a5d2e483d06de37ef3a81 (patch)
tree8564d331513717ca37669b1014c74789e0f186f3 /src/pvs.cpp
parentBug fixed: create config-dir (diff)
downloadpvs-5f1e91c7808ebe97b06a5d2e483d06de37ef3a81.tar.gz
pvs-5f1e91c7808ebe97b06a5d2e483d06de37ef3a81.tar.xz
pvs-5f1e91c7808ebe97b06a5d2e483d06de37ef3a81.zip
PVS output errors fixed
Diffstat (limited to 'src/pvs.cpp')
-rwxr-xr-xsrc/pvs.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pvs.cpp b/src/pvs.cpp
index 20e9b3b..61df049 100755
--- a/src/pvs.cpp
+++ b/src/pvs.cpp
@@ -459,12 +459,13 @@ void PVS::setScriptPath(QString path)
bool PVS::gotVNCScript()
{
- if (fileExists(_vncScriptPath))
+ if (!_vncScriptPath.isEmpty() && fileExists(_vncScriptPath))
return true;
- if (policyFileExists(_vncScriptName))
+
+ if (!_vncScriptName.isEmpty() && policyFileExists(_vncScriptName))
return true;
- return false;
+ return false;
}
/**
* setup password and port