summaryrefslogtreecommitdiff
path: root/noncore/net/mail
authorharlekin <harlekin>2003-12-17 00:28:53 (UTC)
committer harlekin <harlekin>2003-12-17 00:28:53 (UTC)
commit27151bb106e2cbd7f649dae228189ebcaccd7aac (patch) (unidiff)
tree8b4bf245e609eaedb8a5a150c2d2fd68ded0a6ca /noncore/net/mail
parentfb054f9c69224e14f446f405098bd5166377f58d (diff)
downloadopie-27151bb106e2cbd7f649dae228189ebcaccd7aac.zip
opie-27151bb106e2cbd7f649dae228189ebcaccd7aac.tar.gz
opie-27151bb106e2cbd7f649dae228189ebcaccd7aac.tar.bz2
only refresh mailbox view if the mail was deleted, not allways
Diffstat (limited to 'noncore/net/mail') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/viewmail.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp
index 0947879..d86454c 100644
--- a/noncore/net/mail/viewmail.cpp
+++ b/noncore/net/mail/viewmail.cpp
@@ -181,20 +181,22 @@ setText();
181 181
182 182
183ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl) 183ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
184 : ViewMailBase(parent, name, fl), _inLoop(false) 184 : ViewMailBase(parent, name, fl), _inLoop(false)
185{ 185{
186 m_gotBody = false; 186 m_gotBody = false;
187 deleted = false;
187 188
188 connect(reply, SIGNAL(activated()), SLOT(slotReply())); 189 connect(reply, SIGNAL(activated()), SLOT(slotReply()));
189 connect(forward, SIGNAL(activated()), SLOT(slotForward())); 190 connect(forward, SIGNAL(activated()), SLOT(slotForward()));
190 connect( deleteMail, SIGNAL( activated() ), SLOT( slotDeleteMail( ) ) ); 191 connect( deleteMail, SIGNAL( activated() ), SLOT( slotDeleteMail( ) ) );
191 192
192 attachments->setEnabled(m_gotBody); 193 attachments->setEnabled(m_gotBody);
193 connect( attachments, SIGNAL( clicked ( QListViewItem *, const QPoint & , int ) ), SLOT( slotItemClicked( QListViewItem *, const QPoint & , int ) ) ); 194 connect( attachments, SIGNAL( clicked ( QListViewItem *, const QPoint & , int ) ), SLOT( slotItemClicked( QListViewItem *, const QPoint & , int ) ) );
194 195
196
195} 197}
196 198
197void ViewMail::setText() 199void ViewMail::setText()
198{ 200{
199 201
200 QString toString; 202 QString toString;
@@ -330,13 +332,13 @@ void ViewMail::slotForward()
330 Settings *settings = new Settings(); 332 Settings *settings = new Settings();
331 ComposeMail composer( settings ,this, 0, true); 333 ComposeMail composer( settings ,this, 0, true);
332 composer.setSubject( "Fwd: " + m_mail[1] ); 334 composer.setSubject( "Fwd: " + m_mail[1] );
333 composer.setMessage( ftext ); 335 composer.setMessage( ftext );
334 composer.showMaximized(); 336 composer.showMaximized();
335 if ( QDialog::Accepted==composer.exec()) { 337 if ( QDialog::Accepted==composer.exec()) {
336 338
337 } 339 }
338} 340}
339 341
340void ViewMail::slotDeleteMail( ) 342void ViewMail::slotDeleteMail( )
341{ 343{
342 if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { 344 if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) {