mirror of https://github.com/vitalif/phantomjs
Fix bug where phantom.exit wouldn't exit properly
parent
54478a1154
commit
c44838227d
|
@ -99,6 +99,7 @@ class Phantom(QObject):
|
||||||
def _exit(self, code):
|
def _exit(self, code):
|
||||||
self.m_terminated = True
|
self.m_terminated = True
|
||||||
self.m_returnValue = code
|
self.m_returnValue = code
|
||||||
|
QApplication.instance().exit(code)
|
||||||
|
|
||||||
@pyqtProperty('QStringList')
|
@pyqtProperty('QStringList')
|
||||||
def args(self):
|
def args(self):
|
||||||
|
|
|
@ -229,6 +229,7 @@ void Phantom::_exit(int code)
|
||||||
{
|
{
|
||||||
m_terminated = true;
|
m_terminated = true;
|
||||||
m_returnValue = code;
|
m_returnValue = code;
|
||||||
|
QApplication::instance()->exit(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Phantom::injectJs(const QString &jsFilePath) {
|
bool Phantom::injectJs(const QString &jsFilePath) {
|
||||||
|
|
Loading…
Reference in New Issue