ubuntu: port to oxide

This commit is contained in:
Maxim Ermilov
2014-10-17 01:45:03 +04:00
parent a40a10f1ea
commit 88b71b3a57
3 changed files with 9 additions and 14 deletions
+4 -8
View File
@@ -91,14 +91,10 @@ void Inappbrowser::injectScriptCode(int, int, const QString&, bool) {
qCritical() << "unimplemented " << __PRETTY_FUNCTION__;
}
void Inappbrowser::loadFinished(int status) {
if (status == 2) {
this->callbackWithoutRemove(_eventCb, LOADERROR_EVENT);
}
if (status == 0) {
void Inappbrowser::loadFinished(bool status) {
if (status) {
this->callbackWithoutRemove(_eventCb, LOADSTOP_EVENT);
} else {
this->callbackWithoutRemove(_eventCb, LOADSTART_EVENT);
}
if (status == 3) {
this->callbackWithoutRemove(_eventCb, LOADSTOP_EVENT);
}
}