1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 10:16:34 +01:00

Added option to open another private window from private window.

Closes #776
Closes #772
This commit is contained in:
Oliver Gerlich 2013-03-23 13:02:00 +01:00 committed by nowrep
parent 2d27c40384
commit eecbc352c4
3 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 1.5.0
* development version
* added option to open another private window from private window
* added delete action in edit context menu on page
Version 1.4.1

View File

@ -927,7 +927,9 @@ void MainApplication::startPrivateBrowsing()
{
QStringList args;
foreach (const QString &arg, arguments()) {
if (arg.startsWith(QLatin1Char('-'))) {
if (arg.startsWith(QLatin1Char('-')) &&
arg != QLatin1String("--private-browsing") &&
arg != QLatin1String("-pb")) {
args.append(arg);
}
}

View File

@ -549,9 +549,8 @@ void QupZilla::setupMenu()
m_menuTools->addAction(QIcon(":/icons/menu/rss.png"), tr("RSS &Reader"), MENU_RECEIVER, SLOT(showRSSManager()));
m_menuTools->addAction(tr("Web In&spector"), MENU_RECEIVER, SLOT(showWebInspector()))->setShortcut(QKeySequence("Ctrl+Shift+I"));
m_menuTools->addAction(QIcon::fromTheme("edit-clear"), tr("Clear Recent &History"), MENU_RECEIVER, SLOT(showClearPrivateData()))->setShortcut(QKeySequence("Ctrl+Shift+Del"));
m_actionPrivateBrowsing = new QAction(tr("&Private Browsing"), MENU_RECEIVER);
m_actionPrivateBrowsing = new QAction(mApp->isPrivateSession() ? tr("New &Private Browsing Window") : tr("&Private Browsing"), MENU_RECEIVER);
m_actionPrivateBrowsing->setShortcut(QKeySequence("Ctrl+Shift+P"));
m_actionPrivateBrowsing->setVisible(!mApp->isPrivateSession());
connect(m_actionPrivateBrowsing, SIGNAL(triggered(bool)), mApp, SLOT(startPrivateBrowsing()));
m_menuTools->addAction(m_actionPrivateBrowsing);
m_menuTools->addSeparator();