Bug 91820 - Cannot Drag and Drop messages to a different kmail window (instance)
Summary: Cannot Drag and Drop messages to a different kmail window (instance)
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: SVN trunk (KDE 4)
Platform: Mandrake RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2004-10-21 13:17 UTC by Shlomi Fish
Modified: 2011-04-22 20:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: kdepim 4.6


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shlomi Fish 2004-10-21 13:17:24 UTC
Version:           1.7 (using KDE KDE 3.2.3)
Installed from:    Mandrake RPMs
OS:                Linux

If one:

1. Start kmail.

2. Create a new window (File -> New Window)

3. Drag and drop a message from the message list of one window to the folder of another.

The message is not moved or copied there. It should be.
Comment 1 Michael Leupold 2008-11-09 10:01:14 UTC
Following the steps and NOT selecting a folder in the dragged-to kmail window hits an assertion and makes kmail crash:

Application: KMail (kmail), signal SIGABRT
Using host libthread_db library "/lib/libthread_db.so.1".
0x00007fc6c53b8170 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7fc6c8f467a0 (LWP 15115)):
[KCrash Handler]
#5  0x00007fc6c534b145 in raise () from /lib/libc.so.6
#6  0x00007fc6c534c663 in abort () from /lib/libc.so.6
#7  0x00007fc6c6d95736 in qt_message_output (msgType=QtFatalMsg, 
    buf=0x7fffd10e4e70 "ASSERT: \"mFolder == messageListView()->currentFolder()\" in file /home/lemma/kde/trunk/source/KDE/kdepim/kmail/kmmainwidget.cpp, line 1168")
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/global/qglobal.cpp:2102
#8  0x00007fc6c6d95845 in qFatal (msg=0x7fc6c6f10b48 "ASSERT: \"%s\" in file %s, line %d") at /home/lemma/kde/trunk/source/qt-copy/src/corelib/global/qglobal.cpp:2303
#9  0x00007fc6c6d95c9d in qt_assert (assertion=0x7fc6c6787668 "mFolder == messageListView()->currentFolder()", file=0x7fc6c6787628 "/home/lemma/kde/trunk/source/KDE/kdepim/kmail/kmmainwidget.cpp", 
    line=1168) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/global/qglobal.cpp:1872
#10 0x00007fc6c655560b in KMMainWidget::folder (this=0xaadb90) at /home/lemma/kde/trunk/source/KDE/kdepim/kmail/kmmainwidget.cpp:1168
#11 0x00007fc6c632d281 in KMail::FolderView::handleMessagesDropEvent (this=0xc4f560, e=0x7fffd10e8020) at /home/lemma/kde/trunk/source/KDE/kdepim/kmail/folderview.cpp:2354
#12 0x00007fc6c632d472 in KMail::FolderView::dropEvent (this=0xc4f560, e=0x7fffd10e8020) at /home/lemma/kde/trunk/source/KDE/kdepim/kmail/folderview.cpp:2421
#13 0x00007fc6c7cf57ef in QWidget::event (this=0xc4f560, event=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qwidget.cpp:7343
#14 0x00007fc6c80b0505 in QFrame::event (this=0xc4f560, e=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qframe.cpp:651
#15 0x00007fc6c8153828 in QAbstractScrollArea::viewportEvent (this=0xc4f560, e=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qabstractscrollarea.cpp:943
#16 0x00007fc6c820ed15 in QAbstractItemView::viewportEvent (this=0xc4f560, event=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/itemviews/qabstractitemview.cpp:1429
#17 0x00007fc6c824dac5 in QTreeView::viewportEvent (this=0xc4f560, event=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/itemviews/qtreeview.cpp:1265
#18 0x00007fc6c8156634 in QAbstractScrollAreaPrivate::viewportEvent (this=0x9f3520, event=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qabstractscrollarea_p.h:96
#19 0x00007fc6c8156674 in QAbstractScrollAreaFilter::eventFilter (this=0x747b00, o=0xac2130, e=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qabstractscrollarea_p.h:107
#20 0x00007fc6c6eab54d in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x63ad90, receiver=0xac2130, event=0x7fffd10e8020)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:694
#21 0x00007fc6c7c8e61e in QApplicationPrivate::notify_helper (this=0x63ad90, receiver=0xac2130, e=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3799
#22 0x00007fc6c7c903b6 in QApplication::notify (this=0x7fffd10ebf00, receiver=0xac2130, e=0x7fffd10e8020) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3760
#23 0x00007fc6c7677d52 in KApplication::notify (this=0x7fffd10ebf00, receiver=0xac2130, event=0x7fffd10e8020) at /home/lemma/kde/trunk/source/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#24 0x00007fc6c6ead658 in QCoreApplication::notifyInternal (this=0x7fffd10ebf00, receiver=0xac2130, event=0x7fffd10e8020)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:587
#25 0x00007fc6c7c8b52d in QCoreApplication::sendEvent (receiver=0xac2130, event=0x7fffd10e8020) at ../../include/QtCore/../../../../../../source/qt-copy/src/corelib/kernel/qcoreapplication.h:209
#26 0x00007fc6c7d25074 in QX11Data::xdndHandleDrop (this=0x638b10, xe=0x7fffd10e8160, passive=false) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qdnd_x11.cpp:1155
#27 0x00007fc6c7d25484 in QDragManager::drop (this=0x14d98b0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qdnd_x11.cpp:1684
#28 0x00007fc6c7d28245 in QDragManager::eventFilter (this=0x14d98b0, o=0x13e53d0, e=0x7fffd10e8ab0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qdnd_x11.cpp:1284
#29 0x00007fc6c6eab621 in QCoreApplicationPrivate::sendThroughApplicationEventFilters (this=0x63ad90, receiver=0x13e53d0, event=0x7fffd10e8ab0)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:676
#30 0x00007fc6c7c8e50e in QApplicationPrivate::notify_helper (this=0x63ad90, receiver=0x13e53d0, e=0x7fffd10e8ab0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3778
#31 0x00007fc6c7c8f262 in QApplication::notify (this=0x7fffd10ebf00, receiver=0x13e53d0, e=0x7fffd10e8ab0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3528
#32 0x00007fc6c7677d52 in KApplication::notify (this=0x7fffd10ebf00, receiver=0x13e53d0, event=0x7fffd10e8ab0) at /home/lemma/kde/trunk/source/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#33 0x00007fc6c6ead658 in QCoreApplication::notifyInternal (this=0x7fffd10ebf00, receiver=0x13e53d0, event=0x7fffd10e8ab0)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:587
#34 0x00007fc6c7c9c7a3 in QCoreApplication::sendSpontaneousEvent (receiver=0x13e53d0, event=0x7fffd10e8ab0)
    at ../../include/QtCore/../../../../../../source/qt-copy/src/corelib/kernel/qcoreapplication.h:212
#35 0x00007fc6c7c937bb in QApplicationPrivate::sendMouseEvent (receiver=0x13e53d0, event=0x7fffd10e8ab0, alienWidget=0x0, nativeWidget=0x13e53d0, buttonDown=0x7fc6c87de4e8, 
    lastMouseReceiver=@0x7fc6c87de4f0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:2793
#36 0x00007fc6c7d1a46f in QETWidget::translateMouseEvent (this=0x13e53d0, event=0x7fffd10e95c0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication_x11.cpp:4042
#37 0x00007fc6c7d17cc3 in QApplication::x11ProcessEvent (this=0x7fffd10ebf00, event=0x7fffd10e95c0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication_x11.cpp:3038
#38 0x00007fc6c7d47441 in x11EventSourceDispatch (s=0x637480, callback=0, user_data=0x0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:142
#39 0x00007fc6c2dce0f2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0x00007fc6c2dd1396 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0x00007fc6c2dd182f in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0x00007fc6c6ee26b8 in QEventDispatcherGlib::processEvents (this=0x62c390, flags=@0x7fffd10e9860) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:319
#43 0x00007fc6c7d46b27 in QGuiEventDispatcherGlib::processEvents (this=0x62c390, flags=@0x7fffd10e98c0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:198
#44 0x00007fc6c6eaa070 in QEventLoop::processEvents (this=0x1554f70, flags=@0x7fffd10e9920) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventloop.cpp:143
#45 0x00007fc6c6eaa26c in QEventLoop::exec (this=0x1554f70, flags=@0x7fffd10e9ae0) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventloop.cpp:194
#46 0x00007fc6c7d27eb5 in QDragManager::drag (this=0x14d98b0, o=0x158ef10) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qdnd_x11.cpp:1944
#47 0x00007fc6c7ca8199 in QDrag::exec (this=0x158ef10, supportedActions=@0x7fffd10e9b90, defaultDropAction=Qt::IgnoreAction) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qdrag.cpp:275
#48 0x00007fc6c7ca81e7 in QDrag::exec (this=0x158ef10, supportedActions=@0x7fffd10e9d90) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qdrag.cpp:234
#49 0x00007fc6c669be0b in KMail::MessageListView::Widget::viewStartDragRequest (this=0xdab2a0) at /home/lemma/kde/trunk/source/KDE/kdepim/kmail/messagelistview/widget.cpp:789
#50 0x00007fc6c66eefe6 in KMail::MessageListView::Core::View::mouseMoveEvent (this=0xe50cd0, e=0x7fffd10eae70) at /home/lemma/kde/trunk/source/KDE/kdepim/kmail/messagelistview/core/view.cpp:1298
#51 0x00007fc6c7cf4d26 in QWidget::event (this=0xe50cd0, event=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qwidget.cpp:7148
#52 0x00007fc6c80b0505 in QFrame::event (this=0xe50cd0, e=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qframe.cpp:651
#53 0x00007fc6c8153828 in QAbstractScrollArea::viewportEvent (this=0xe50cd0, e=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qabstractscrollarea.cpp:943
#54 0x00007fc6c820ed15 in QAbstractItemView::viewportEvent (this=0xe50cd0, event=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/itemviews/qabstractitemview.cpp:1429
#55 0x00007fc6c824dac5 in QTreeView::viewportEvent (this=0xe50cd0, event=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/itemviews/qtreeview.cpp:1265
#56 0x00007fc6c8156634 in QAbstractScrollAreaPrivate::viewportEvent (this=0x153b160, event=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qabstractscrollarea_p.h:96
#57 0x00007fc6c8156674 in QAbstractScrollAreaFilter::eventFilter (this=0x9dc2a0, o=0x15b0c80, e=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/widgets/qabstractscrollarea_p.h:107
#58 0x00007fc6c6eab54d in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x63ad90, receiver=0x15b0c80, event=0x7fffd10eae70)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:694
#59 0x00007fc6c7c8e61e in QApplicationPrivate::notify_helper (this=0x63ad90, receiver=0x15b0c80, e=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3799
#60 0x00007fc6c7c8f262 in QApplication::notify (this=0x7fffd10ebf00, receiver=0x15b0c80, e=0x7fffd10eae70) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3528
#61 0x00007fc6c7677d52 in KApplication::notify (this=0x7fffd10ebf00, receiver=0x15b0c80, event=0x7fffd10eae70) at /home/lemma/kde/trunk/source/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#62 0x00007fc6c6ead658 in QCoreApplication::notifyInternal (this=0x7fffd10ebf00, receiver=0x15b0c80, event=0x7fffd10eae70)
    at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:587
#63 0x00007fc6c7c9c7a3 in QCoreApplication::sendSpontaneousEvent (receiver=0x15b0c80, event=0x7fffd10eae70)
    at ../../include/QtCore/../../../../../../source/qt-copy/src/corelib/kernel/qcoreapplication.h:212
#64 0x00007fc6c7c937bb in QApplicationPrivate::sendMouseEvent (receiver=0x15b0c80, event=0x7fffd10eae70, alienWidget=0x15b0c80, nativeWidget=0xd54910, buttonDown=0x7fc6c87de4e8, 
    lastMouseReceiver=@0x7fc6c87de4f0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:2793
#65 0x00007fc6c7d1a46f in QETWidget::translateMouseEvent (this=0xd54910, event=0x7fffd10eb980) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication_x11.cpp:4042
#66 0x00007fc6c7d17cc3 in QApplication::x11ProcessEvent (this=0x7fffd10ebf00, event=0x7fffd10eb980) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication_x11.cpp:3038
#67 0x00007fc6c7d47441 in x11EventSourceDispatch (s=0x637480, callback=0, user_data=0x0) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:142
#68 0x00007fc6c2dce0f2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#69 0x00007fc6c2dd1396 in ?? () from /usr/lib/libglib-2.0.so.0
#70 0x00007fc6c2dd182f in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#71 0x00007fc6c6ee26b8 in QEventDispatcherGlib::processEvents (this=0x62c390, flags=@0x7fffd10ebc20) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:319
#72 0x00007fc6c7d46b27 in QGuiEventDispatcherGlib::processEvents (this=0x62c390, flags=@0x7fffd10ebc80) at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:198
#73 0x00007fc6c6eaa070 in QEventLoop::processEvents (this=0x7fffd10ebd30, flags=@0x7fffd10ebce0) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventloop.cpp:143
#74 0x00007fc6c6eaa26c in QEventLoop::exec (this=0x7fffd10ebd30, flags=@0x7fffd10ebd40) at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qeventloop.cpp:194
#75 0x00007fc6c6eae05b in QCoreApplication::exec () at /home/lemma/kde/trunk/source/qt-copy/src/corelib/kernel/qcoreapplication.cpp:845
#76 0x00007fc6c7c8e3a4 in QApplication::exec () at /home/lemma/kde/trunk/source/qt-copy/src/gui/kernel/qapplication.cpp:3331
#77 0x0000000000403670 in main (argc=3, argv=0x7fffd10ec088) at /home/lemma/kde/trunk/source/KDE/kdepim/kmail/main.cpp:146
Comment 2 Michael Leupold 2008-11-09 10:03:14 UTC
Selecting a folder in the dragged-to window doesn't crash and the bug is still reproducible (both tests on trunk r881868).
Comment 3 Thomas McGuire 2008-11-09 14:25:50 UTC
Not that KMail has tabs for folders, I was actually thinking about removing support for multiple main windows.
Or is there a reason that you still want to have that?
Comment 4 Christophe Marin 2011-04-22 20:02:39 UTC
Fixed in KMail2