summaryrefslogtreecommitdiff
authoralwin <alwin>2005-03-10 13:48:45 (UTC)
committer alwin <alwin>2005-03-10 13:48:45 (UTC)
commit95a99e7b75eddc5629e839698b762f594be42b9f (patch) (unidiff)
treeb054fc1d0731e80955f6b9fe32a51d71bdfa15cc
parent8e618d7a6d195cb737946e89370d5c60f92e8f86 (diff)
downloadopie-95a99e7b75eddc5629e839698b762f594be42b9f.zip
opie-95a99e7b75eddc5629e839698b762f594be42b9f.tar.gz
opie-95a99e7b75eddc5629e839698b762f594be42b9f.tar.bz2
another stupid crasher fixed
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/accountview.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp
index d01d6bb..faa42c3 100644
--- a/noncore/net/mail/accountview.cpp
+++ b/noncore/net/mail/accountview.cpp
@@ -56,33 +56,32 @@ void AccountView::slotContextMenu(int id)
56 AccountViewItem *view = static_cast<AccountViewItem *>(currentItem()); 56 AccountViewItem *view = static_cast<AccountViewItem *>(currentItem());
57 if (!view) return; 57 if (!view) return;
58 view->contextMenuSelected(id); 58 view->contextMenuSelected(id);
59} 59}
60 60
61void AccountView::slotRightButton(int button, QListViewItem * item,const QPoint&,int) 61void AccountView::slotRightButton(int button, QListViewItem * item,const QPoint&,int)
62{ 62{
63 m_rightPressed = true; 63 m_rightPressed = true;
64 if (!item) return; 64 if (!item) return;
65 AccountViewItem *view = static_cast<AccountViewItem *>(item); 65 AccountViewItem *view = static_cast<AccountViewItem *>(item);
66 QPopupMenu*m = view->getContextMenu(); 66 QPopupMenu*m = view->getContextMenu();
67 if (!m) return; 67 if (!m) return;
68 connect(m,SIGNAL(activated(int)),this,SLOT(slotContextMenu(int))); 68 connect(m,SIGNAL(activated(int)),this,SLOT(slotContextMenu(int)));
69 m->setFocus(); 69 m->setFocus();
70 m->exec( QPoint( QCursor::pos().x(), QCursor::pos().y()) ); 70 m->exec( QPoint( QCursor::pos().x(), QCursor::pos().y()) );
71 delete m; 71 delete m;
72 setSelected(item,true);
73} 72}
74 73
75void AccountView::slotLeftButton(int button, QListViewItem * item,const QPoint&,int) 74void AccountView::slotLeftButton(int button, QListViewItem * item,const QPoint&,int)
76{ 75{
77 m_rightPressed = false; 76 m_rightPressed = false;
78} 77}
79 78
80void AccountView::slotMouseClicked(QListViewItem*item) 79void AccountView::slotMouseClicked(QListViewItem*item)
81{ 80{
82 if (m_rightPressed) return; 81 if (m_rightPressed) return;
83 if (!item || m_currentItem == item) return; 82 if (!item || m_currentItem == item) return;
84 /* ### ToDo check settings if on single tab it should open */ 83 /* ### ToDo check settings if on single tab it should open */
85 m_currentItem = item; 84 m_currentItem = item;
86 refresh(m_currentItem); 85 refresh(m_currentItem);
87} 86}
88 87