1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Pass only current profile when starting private browsing

Fix starting private browsing when qupzilla is run eg. with

  qupzilla -p profile_name
This commit is contained in:
David Rosca 2016-01-25 13:51:23 +01:00
parent 0aa64de13a
commit 007d68a027

View File

@ -604,13 +604,8 @@ void MainApplication::startPrivateBrowsing(const QUrl &startUrl)
}
QStringList args;
foreach (const QString &arg, arguments()) {
if (arg.startsWith(QLatin1Char('-')) && arg != QLatin1String("--private-browsing") && arg != QLatin1String("-pb")) {
args.append(arg);
}
}
args.append(QLatin1String("--private-browsing"));
args.append(QSL("--private-browsing"));
args.append(QSL("--profile=") + ProfileManager::currentProfile());
if (!url.isEmpty()) {
args << url.toEncoded();