Merge pull request #4722 from maximd/master

Fix issue synergy/synergy#4720
This commit is contained in:
Jerry (Xinyu Hou) 2015-05-28 16:58:44 -07:00
commit 9487db1672
1 changed files with 1 additions and 7 deletions

View File

@ -194,13 +194,7 @@ QString PluginManager::getPluginUrl(const QString& pluginName)
process.start(program, args); process.start(program, args);
bool success = process.waitForStarted(); bool success = process.waitForStarted();
if (!success || !process.waitForFinished()) bool isDeb = (success && process.waitForFinished() & (process.exitCode() == 0));
{
emit error(tr("Could not get Linux package type."));
return "";
}
bool isDeb = (process.exitCode() == 0);
int arch = getProcessorArch(); int arch = getProcessorArch();
if (arch == kProcessorArchLinux32) { if (arch == kProcessorArchLinux32) {