mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
Added option to open another private window from private window.
Closes #776 Closes #772
This commit is contained in:
parent
2d27c40384
commit
eecbc352c4
@ -1,5 +1,6 @@
|
|||||||
Version 1.5.0
|
Version 1.5.0
|
||||||
* development version
|
* development version
|
||||||
|
* added option to open another private window from private window
|
||||||
* added delete action in edit context menu on page
|
* added delete action in edit context menu on page
|
||||||
|
|
||||||
Version 1.4.1
|
Version 1.4.1
|
||||||
|
@ -927,7 +927,9 @@ void MainApplication::startPrivateBrowsing()
|
|||||||
{
|
{
|
||||||
QStringList args;
|
QStringList args;
|
||||||
foreach (const QString &arg, arguments()) {
|
foreach (const QString &arg, arguments()) {
|
||||||
if (arg.startsWith(QLatin1Char('-'))) {
|
if (arg.startsWith(QLatin1Char('-')) &&
|
||||||
|
arg != QLatin1String("--private-browsing") &&
|
||||||
|
arg != QLatin1String("-pb")) {
|
||||||
args.append(arg);
|
args.append(arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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(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(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_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->setShortcut(QKeySequence("Ctrl+Shift+P"));
|
||||||
m_actionPrivateBrowsing->setVisible(!mApp->isPrivateSession());
|
|
||||||
connect(m_actionPrivateBrowsing, SIGNAL(triggered(bool)), mApp, SLOT(startPrivateBrowsing()));
|
connect(m_actionPrivateBrowsing, SIGNAL(triggered(bool)), mApp, SLOT(startPrivateBrowsing()));
|
||||||
m_menuTools->addAction(m_actionPrivateBrowsing);
|
m_menuTools->addAction(m_actionPrivateBrowsing);
|
||||||
m_menuTools->addSeparator();
|
m_menuTools->addSeparator();
|
||||||
|
Loading…
Reference in New Issue
Block a user