mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-08 21:04:26 +00:00
Imported recent patches from stable branch
This commit is contained in:
parent
e2208a484e
commit
107b833703
13
configure
vendored
13
configure
vendored
@ -529,10 +529,21 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
QStringList incs3;
|
||||||
|
QString req_ver3 = "2.0";
|
||||||
|
QString version3, libs3, other3;
|
||||||
|
if(conf->findPkgConfig("gtk+-2.0", mode, req_ver3, &version3, &incs3, &libs3, &other3)) {
|
||||||
|
for(int n = 0; n < incs3.count(); ++n)
|
||||||
|
conf->addIncludePath(incs3[n]);
|
||||||
|
if(!libs3.isEmpty())
|
||||||
|
conf->addLib(libs3);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -40,10 +40,21 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
QStringList incs3;
|
||||||
|
QString req_ver3 = "2.0";
|
||||||
|
QString version3, libs3, other3;
|
||||||
|
if(conf->findPkgConfig("gtk+-2.0", mode, req_ver3, &version3, &incs3, &libs3, &other3)) {
|
||||||
|
for(int n = 0; n < incs3.count(); ++n)
|
||||||
|
conf->addIncludePath(incs3[n]);
|
||||||
|
if(!libs3.isEmpty())
|
||||||
|
conf->addLib(libs3);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -181,6 +181,14 @@ int main(int argc, char *argv[]){
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// XXX: Workaround to avoid the following Qt bug:
|
||||||
|
// http://bugreports.qt.nokia.com/browse/QTBUG-7105
|
||||||
|
#ifndef DISABLE_GUI
|
||||||
|
// Force the creation of an input context to avoid
|
||||||
|
// a crash in QApplication destructor
|
||||||
|
app->inputContext();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Check if qBittorrent is already running for this user
|
// Check if qBittorrent is already running for this user
|
||||||
if(app->isRunning()) {
|
if(app->isRunning()) {
|
||||||
qDebug("qBittorrent is already running for this user.");
|
qDebug("qBittorrent is already running for this user.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user