From 13bb7e4a34e306e579a6f4fe6c0b949a47246666 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Tue, 18 Mar 2008 21:19:54 +0100 Subject: [PATCH] Don't crash on Del in the Watches window while no program is loaded. This bug was reported by Rafael Belmonte through http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467243 --- kdbg/debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdbg/debugger.cpp b/kdbg/debugger.cpp index 354a5f6..d7fd154 100644 --- a/kdbg/debugger.cpp +++ b/kdbg/debugger.cpp @@ -1826,7 +1826,7 @@ void KDebugger::slotDeleteWatch() { // delete only allowed while debugger is idle; or else we might delete // the very expression the debugger is currently working on... - if (!m_d->isIdle()) + if (m_d == 0 || !m_d->isIdle()) return; VarTree* item = m_watchVariables.currentItem(); -- 2.11.4.GIT