author | zautrix <zautrix> | 2004-09-07 23:33:23 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-07 23:33:23 (UTC) |
commit | 199025628054eef739a261437a51a98f5218ab0f (patch) (side-by-side diff) | |
tree | 75ec5c537ee789dbd3e1a87a2e7db9b29d44c626 /kmicromail | |
parent | 2676646d4744ccceab1063dc02d772a26a203c61 (diff) | |
download | kdepimpi-199025628054eef739a261437a51a98f5218ab0f.zip kdepimpi-199025628054eef739a261437a51a98f5218ab0f.tar.gz kdepimpi-199025628054eef739a261437a51a98f5218ab0f.tar.bz2 |
Fixed default settings
-rw-r--r-- | kmicromail/composemail.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 5f446fa..f7604ad 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp @@ -37,32 +37,38 @@ //using namespace Opie::Core; //using namespace Opie::Ui; ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags ) : ComposeMailUI( parent, name, modal, flags ) { mPickLineEdit = 0; connect(ExternalAppHandler::instance(), SIGNAL(receivedNameEmailUidListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&)), this, SLOT(insertAttendees(const QString&, const QStringList&, const QStringList&, const QStringList&))); settings = s; m_replyid = ""; KConfig config( locateLocal("config", "kabcrc") ); config.setGroup( "General" ); QString whoami_uid = config.readEntry( "WhoAmI" ); + if ( whoami_uid.isEmpty() ) { + QMessageBox::information( 0, tr( "Hint" ), + tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), + tr( "Ok" ) ); + + } else bool res = ExternalAppHandler::instance()->requestDetailsFromKAPI("", "sendbacklist", whoami_uid); #ifdef DESKTOP_VERSION KABC::Addressee con = KABC::StdAddressBook::self()->whoAmI( ); QStringList mails = con.emails(); QString defmail = con.preferredEmail(); if ( mails.count() == 0) QMessageBox::information( 0, tr( "Hint" ), tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), tr( "Ok" ) ); if (defmail.length()!=0) { fromBox->insertItem(defmail); } QStringList::ConstIterator sit = mails.begin(); for (;sit!=mails.end();++sit) { if ( (*sit)==defmail) continue; |