Commit 763739ef authored by Allen Winter's avatar Allen Winter

frame/framemanager.cpp - crash guard if we don't have a current frame yet

parent e96e7e6a
......@@ -202,6 +202,10 @@ void FrameManager::slotSetStatusText(Frame *frame, const QString &statusText)
void FrameManager::openUrl(OpenUrlRequest &request)
{
if (!m_currentFrame) {
return;
}
if (request.browserArgs().newTab() || request.browserArgs().forcesNewWindow() || request.options() == OpenUrlRequest::NewTab || (m_currentFrame->id() == 0)) {
int newFrameId = -1;
Q_EMIT signalRequestNewFrame(newFrameId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment