[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeaccessibility/kmouth/phrasebook
From: Laurent Montel <montel () kde ! org>
Date: 2004-01-07 21:07:17
Message-ID: 20040107210717.48BA79106 () office ! kde ! org
[Download RAW message or body]
CVS commit by mlaurent:
Fix other crash when list is empty
M +4 -1 phrasetree.cpp 1.5
--- kdeaccessibility/kmouth/phrasebook/phrasetree.cpp #1.4:1.5
@@ -256,4 +256,6 @@ bool PhraseTree::hasSelectedItems() {
void PhraseTree::deleteSelectedItems() {
QListViewItem *i = firstChild();
+ if ( !i )
+ return;
QListViewItem *deleteItem = 0;
do {
@@ -404,5 +406,6 @@ void PhraseTree::fillBook (PhraseBook *b
QListViewItem *i = firstChild();
int level = 0;
-
+ if ( !i )
+ return;
do {
if (i->isSelected() || !respectSelection || level > 0) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic