|
|
|
@ -153,6 +153,7 @@ MainApplication::MainApplication(int &argc, char** argv) |
|
|
|
|
|
|
|
|
|
|
|
QUrl startUrl; |
|
|
|
QUrl startUrl; |
|
|
|
QString startProfile; |
|
|
|
QString startProfile; |
|
|
|
|
|
|
|
QString startToken; |
|
|
|
QStringList messages; |
|
|
|
QStringList messages; |
|
|
|
|
|
|
|
|
|
|
|
bool noAddons = false; |
|
|
|
bool noAddons = false; |
|
|
|
@ -169,6 +170,10 @@ MainApplication::MainApplication(int &argc, char** argv) |
|
|
|
case Qz::CL_StartWithProfile: |
|
|
|
case Qz::CL_StartWithProfile: |
|
|
|
startProfile = pair.text; |
|
|
|
startProfile = pair.text; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case Qz::CL_StartWithToken: |
|
|
|
|
|
|
|
startToken = pair.text; |
|
|
|
|
|
|
|
message.append("TOKEN:"+ pair.text) |
|
|
|
|
|
|
|
break; |
|
|
|
case Qz::CL_StartPortable: |
|
|
|
case Qz::CL_StartPortable: |
|
|
|
m_isPortable = true; |
|
|
|
m_isPortable = true; |
|
|
|
break; |
|
|
|
break; |
|
|
|
@ -844,8 +849,12 @@ void MainApplication::messageReceived(const QString &message) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QWidget* actWin = getWindow(); |
|
|
|
QWidget* actWin = getWindow(); |
|
|
|
QUrl actUrl; |
|
|
|
QUrl actUrl; |
|
|
|
|
|
|
|
if (message.startsWith(QLatin1String("TOKEN:"))) { |
|
|
|
|
|
|
|
const QUrl url = QUrl::fromUserInput(message.mid(6)); |
|
|
|
|
|
|
|
// do something
|
|
|
|
|
|
|
|
|
|
|
|
if (message.startsWith(QLatin1String("URL:"))) { |
|
|
|
} |
|
|
|
|
|
|
|
else if (message.startsWith(QLatin1String("URL:"))) { |
|
|
|
const QUrl url = QUrl::fromUserInput(message.mid(4)); |
|
|
|
const QUrl url = QUrl::fromUserInput(message.mid(4)); |
|
|
|
addNewTab(url); |
|
|
|
addNewTab(url); |
|
|
|
actWin = getWindow(); |
|
|
|
actWin = getWindow(); |
|
|
|
|