Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
akregator
fix-crash-if-no-current-frame.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor