[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 249331] KDevelop crashed when debugging
From:       Niko Sams <niko.sams () gmail ! com>
Date:       2010-08-28 15:20:43
Message-ID: 20100828152043.AC6A263084 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=249331


Niko Sams <niko.sams@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Niko Sams <niko sams gmail com>  2010-08-28 17:20:42 ---
commit 875925f9c452446a22e5c11120a9e1c9772423fd
Author: Niko Sams <niko.sams@gmail.com>
Date:   Sat Aug 28 17:23:20 2010 +0200

    Fix crash when opening context menu without selected variable

    BUG: 249331

diff --git a/debugger/variable/variablewidget.cpp
b/debugger/variable/variablewidget.cpp
index 4e5ecfc..36441c1 100644
--- a/debugger/variable/variablewidget.cpp
+++ b/debugger/variable/variablewidget.cpp
@@ -255,6 +255,7 @@ void VariableTree::setupActions()

 Variable* VariableTree::selectedVariable() const
 {
+    if (selectionModel()->selectedRows().isEmpty()) return 0;
     TreeItem* item =
collection()->itemForIndex(selectionModel()->selectedRows().first());
     if (!item) return 0;
     return dynamic_cast<Variable*>(item);

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic