Starting Aethera 0.9.2, choosing the Notes pane,
and selecting Edit->Delete (or pressing the delete
key) causes an infinite loop if there are no
notes (maybe even no selected notes).
There are a lot of messages like this printed in the
debug output:
QGList::locate: Index 0 out of range
QGList::locate: Index 1 out of range
QGList::locate: Index 2 out of range
QGList::locate: Index 3 out of range
QGList::locate: Index 4 out of range
QGList::locate: Index 5 out of range
QGList::locate: Index 6 out of range
QGList::locate: Index 7 out of range
...and so on ad infinitum.
The following patch seems to be in order. (Note
the dangerous mix of signed and unsigned variables.)
--- datahandlerimpl.cpp Mon May 21 23:30:30 2001
+++ datahandlerimpl.cpp Mon May 21 23:30:25 2001
@@ -103,9 +103,11 @@
void DataHandlerImpl::deleteSelection()
{
QList<DataWidget>
selectedViews=getSelection();
+ if (selectedViews.isEmpty()) return;
+
TemplateView *t;
bool setExpungeMode=false;
- int i;
+ uint i;
if(dynamic_cast<MailListView *>(this) &&s
electedViews.count()>1) setExpungeMode=true;