[Bug 260643] Filter Action "Mark as Unread" is not working

Laurent Montel montel at kde.org
Sun Dec 19 11:11:40 GMT 2010


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





--- Comment #2 from Laurent Montel <montel kde org>  2010-12-19 12:11:39 ---
When I debug mailcommon:

QString FilterActionSetStatus::argsAsString() const
{
  const int index = mParameterList.indexOf( mParameter );
  qDebug()<<" index :"<<index;
  if ( index < 1 )
    return QString();

  QString v = stati[index - 1].statusStr();
  qDebug()<<" stati[index - 1].statusStr(); :"<<v;

  return v;
}

-----------------------------------------------------------
 index : 3 
 stati[index - 1].statusStr(); : "U" 
 index : 1 
 stati[index - 1].statusStr(); : "UG" 
  (*it)->argsAsString() : "UG"  i : 0 

I don't know why there is two call to this function not logical

Bt
--
Breakpoint 2, FilterActionSetStatus::argsAsString (this=0xa4c220) at
/home/laurent/kde/kde4/kdepim-trunk/mailcommon/filteraction.cpp:945
945     {
(gdb) 
Continuing.
 index : 3 
 stati[index - 1].statusStr(); : "U" 

Breakpoint 2, FilterActionSetStatus::argsAsString (this=0xa9f9c0) at
/home/laurent/kde/kde4/kdepim-trunk/mailcommon/filteraction.cpp:945
945     {
(gdb) where
#0  FilterActionSetStatus::argsAsString (this=0xa9f9c0) at
/home/laurent/kde/kde4/kdepim-trunk/mailcommon/filteraction.cpp:945
#1  0x00007ffff1a9a890 in MailCommon::MailFilter::writeConfig (this=0xe251c0,
config=<value optimized out>)
    at /home/laurent/kde/kde4/kdepim-trunk/mailcommon/mailfilter.cpp:309
#2  0x00007ffff1a80b81 in
MailCommon::FilterImporterExporter::writeFiltersToConfig (filters=<value
optimized out>, config=DWARF-2 expression error: DW_OP_reg operations must be
used either alone or in conjuction with DW_OP_piece or DW_OP_bit_piece.
)
    at
/home/laurent/kde/kde4/kdepim-trunk/mailcommon/filterimporterexporter.cpp:173
#3  0x00007ffff1a837bf in MailCommon::FilterManager::writeConfig
(this=0x666c70, withSync=true)
    at /home/laurent/kde/kde4/kdepim-trunk/mailcommon/filtermanager.cpp:330
#4  0x00007ffff1a84c80 in MailCommon::FilterManager::setFilters (this=0x666c70,
filters=<value optimized out>)
    at /home/laurent/kde/kde4/kdepim-trunk/mailcommon/filtermanager.cpp:481
#5  0x00007ffff749af2c in KMFilterListBox::slotApplyFilterChanges
(this=0xb263c0, button=<value optimized out>)
    at /home/laurent/kde/kde4/kdepim-trunk/kmail/kmfilterdlg.cpp:790
#6  0x00007ffff749b0eb in KMFilterListBox::qt_metacall (this=0xb263c0,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, 
    _a=0x7fffffffc180) at
/home/laurent/kde/kde4/kdepim-trunk/build/kmail/kmfilterdlg.moc:109
#7  0x00007ffff53c230d in QMetaObject::metacall (object=0xb263c0,
cl=QMetaObject::InvokeMetaMethod, idx=41, argv=0x7fffffffc180)
    at kernel/qmetaobject.cpp:237
#8  0x00007ffff53d9675 in QMetaObject::activate (sender=0xa7ecf0,
m=0x7ffff7dae2c0, local_signal_index=14, argv=0x7fffffffc180)
    at kernel/qobject.cpp:3278
#9  0x00007ffff7ae38f1 in KDialog::buttonClicked (this=0x7fffffffbc70,
_t1=KDialog::Apply)
    at /home/laurent/kde/kde4/kdelibs/build-akonadi/kdeui/kdialog.moc:289
#10 0x00007ffff7ae5892 in KDialog::slotButtonClicked (this=0x7fffffffbc70,
button=11139520)
    at /home/laurent/kde/kde4/kdelibs/kdeui/dialogs/kdialog.cpp:879
#11 0x00007ffff7ae7a19 in KDialog::qt_metacall (this=0xa7ecf0,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, 
    _a=0x7fffffffc350) at
/home/laurent/kde/kde4/kdelibs/build-akonadi/kdeui/kdialog.moc:190
#12 0x00007ffff749ac20 in KMFilterDlg::qt_metacall (this=0x7fffffffbc70,
_c=11139520, _id=1, _a=0x59)
    at /home/laurent/kde/kde4/kdepim-trunk/build/kmail/kmfilterdlg.moc:252
#13 0x00007ffff53c230d in QMetaObject::metacall (object=0xa7ecf0,
cl=QMetaObject::InvokeMetaMethod, idx=69, argv=0x7fffffffc350)
    at kernel/qmetaobject.cpp:237
#14 0x00007ffff53d9675 in QMetaObject::activate (sender=0xb66220,
m=0x7ffff5552400, local_signal_index=0, argv=0x7fffffffc350)
    at kernel/qobject.cpp:3278
#15 0x00007ffff53df8fa in QSignalMapper::mapped (this=0xb66220, _t1=8) at
.moc/debug-shared/moc_qsignalmapper.cpp:101
#16 0x00007ffff53df5bd in QSignalMapper::map (this=0xb66220, sender=0x4a8bb0)
at kernel/qsignalmapper.cpp:266
#17 0x00007ffff53df550 in QSignalMapper::map (this=0xb66220) at
kernel/qsignalmapper.cpp:257
#18 0x00007ffff53df86c in QSignalMapper::qt_metacall (this=0xb66220,
_c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffffffc530)
    at .moc/debug-shared/moc_qsignalmapper.cpp:87
#19 0x00007ffff53c230d in QMetaObject::metacall (object=0xb66220,
cl=QMetaObject::InvokeMetaMethod, idx=8, argv=0x7fffffffc530)
    at kernel/qmetaobject.cpp:237

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



More information about the Kdepim-bugs mailing list