summaryrefslogtreecommitdiffabout
path: root/kmicromail/addresspicker.cpp
Unidiff
Diffstat (limited to 'kmicromail/addresspicker.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/addresspicker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kmicromail/addresspicker.cpp b/kmicromail/addresspicker.cpp
index ec6da49..f4234b4 100644
--- a/kmicromail/addresspicker.cpp
+++ b/kmicromail/addresspicker.cpp
@@ -53,25 +53,25 @@ AddressPicker::AddressPicker( QWidget *parent, const char *name, bool modal, WFl
53 for (;sit!=mails.end();++sit) 53 for (;sit!=mails.end();++sit)
54 { 54 {
55 contactLine=pre+(*sit)+suf; 55 contactLine=pre+(*sit)+suf;
56 addressList->insertItem(contactLine); 56 addressList->insertItem(contactLine);
57 } 57 }
58 } 58 }
59 } 59 }
60 if ( addressList->count() <= 0 ) 60 if ( addressList->count() <= 0 )
61 { 61 {
62#if 0 62#if 0
63 // makes this realy sense?? 63 // makes this realy sense??
64 addressList->insertItem( 64 addressList->insertItem(
65 tr( "There are no entries in the addressbook." ) ); 65 i18n( "There are no entries in the addressbook." ) );
66#endif 66#endif
67 addressList->setEnabled( false ); 67 addressList->setEnabled( false );
68 okButton->setEnabled( false ); 68 okButton->setEnabled( false );
69 } 69 }
70 else 70 else
71 { 71 {
72 // addressList->sort(); 72 // addressList->sort();
73 } 73 }
74#endif 74#endif
75} 75}
76 76
77void AddressPicker::accept() 77void AddressPicker::accept()
@@ -80,26 +80,26 @@ void AddressPicker::accept()
80 QString names; 80 QString names;
81 81
82 while ( item ) 82 while ( item )
83 { 83 {
84 if ( item->selected() ) 84 if ( item->selected() )
85 names += item->text() + ", "; 85 names += item->text() + ", ";
86 item = item->next(); 86 item = item->next();
87 } 87 }
88 names.replace( names.length() - 2, 2, "" ); 88 names.replace( names.length() - 2, 2, "" );
89 89
90 if ( names.isEmpty() ) 90 if ( names.isEmpty() )
91 { 91 {
92 QMessageBox::information(this, tr("Error"), tr("<p>You have to select" 92 QMessageBox::information(this, i18n("Error"), i18n("<p>You have to select"
93 " at least one address entry.</p>"), tr("Ok")); 93 " at least one address entry.</p>"), i18n("Ok"));
94 return; 94 return;
95 } 95 }
96 96
97 selectedNames = names; 97 selectedNames = names;
98 QDialog::accept(); 98 QDialog::accept();
99} 99}
100 100
101QString AddressPicker::getNames() 101QString AddressPicker::getNames()
102{ 102{
103 QString names = 0; 103 QString names = 0;
104 104
105 AddressPicker picker(0, 0, true); 105 AddressPicker picker(0, 0, true);