File fix-crash-if-no-current-frame.patch of Package akregator
From 763739efa2e17ab1ed93fefe7b1070a86cad4532 Mon Sep 17 00:00:00 2001
From: Allen Winter <winter@kde.org>
Date: Thu, 6 Jul 2017 12:22:55 -0400
Subject: frame/framemanager.cpp - crash guard if we don't have a current frame
yet
---
src/frame/framemanager.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/frame/framemanager.cpp b/src/frame/framemanager.cpp
index d07c90f..f16b441 100644
--- a/src/frame/framemanager.cpp
+++ b/src/frame/framemanager.cpp
@@ -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);
--
cgit v0.11.2