[Kde-pim] KDE/kdepim/kontact/plugins
Rafael Fernández López
ereslibre at kde.org
Sat Jul 26 12:02:58 BST 2008
SVN commit 837983 by ereslibre:
Fix message content when dropping of multiple items is not possible. Also, when processing the drop event, remove the visual message box error to a console debug output one if the drop event couldn't
be processed.
CCMAIL: kde-pim at kde.org
M +2 -2 kaddressbook/kaddressbook_plugin.cpp
M +1 -0 kmail/kmail_plugin.cpp
M +2 -2 knotes/knotes_plugin.cpp
M +2 -3 korganizer/korganizerplugin.cpp
M +2 -2 korganizer/todoplugin.cpp
--- trunk/KDE/kdepim/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp #837982:837983
@@ -173,7 +173,7 @@
KPIM::MailList mails = KPIM::MailList::fromMimeData( md );
if ( mails.count() != 1 ) {
KMessageBox::sorry( core(),
- i18n( "Drops of multiple mails is not supported." ) );
+ i18n( "Dropping multiple mails is not supported." ) );
} else {
KPIM::MailSummary mail = mails.first();
org::kde::kmail::kmail kmail(
@@ -186,7 +186,7 @@
return;
}
- KMessageBox::sorry( core(), i18n( "Cannot handle drop events of type '%1'.", event->format() ) );
+ kWarning() << QString( "Cannot handle drop events of type '%1'." ).arg( event->format() );
}
////
--- trunk/KDE/kdepim/kontact/plugins/kmail/kmail_plugin.cpp #837982:837983
@@ -106,6 +106,7 @@
openComposer( to.join( ", " ) );
}
+ kWarning() << QString( "Cannot handle drop events of type '%1'." ).arg( de->format() );
}
void KMailPlugin::openComposer( const KUrl &attach )
--- trunk/KDE/kdepim/kontact/plugins/knotes/knotes_plugin.cpp #837982:837983
@@ -158,7 +158,7 @@
event->accept();
if ( mails.count() != 1 ) {
KMessageBox::sorry( core(),
- i18n( "Drops of multiple mails is not supported." ) );
+ i18n( "Dropping multiple mails is not supported." ) );
} else {
KPIM::MailSummary mail = mails.first();
QString txt = i18n( "From: %1\nTo: %2\nSubject: %3", mail.from(), mail.to(), mail.subject() );
@@ -167,7 +167,7 @@
return;
}
- KMessageBox::sorry( core(), i18n( "Cannot handle drop events of type '%1'.", event->format() ) );
+ kWarning() << QString( "Cannot handle drop events of type '%1'." ).arg( event->format() );
}
// private slots
--- trunk/KDE/kdepim/kontact/plugins/korganizer/korganizerplugin.cpp #837982:837983
@@ -199,7 +199,7 @@
event->accept();
if ( mails.count() != 1 ) {
KMessageBox::sorry( core(),
- i18n( "Drops of multiple mails is not supported." ) );
+ i18n( "Dropping multiple mails is not supported." ) );
} else {
KPIM::MailSummary mail = mails.first();
QString txt = i18n( "From: %1\nTo: %2\nSubject: %3",
@@ -217,8 +217,7 @@
return;
}
- KMessageBox::sorry( core(),
- i18n( "Cannot handle drop events of type '%1'.", event->format() ) );
+ kWarning() << QString( "Cannot handle drop events of type '%1'." ).arg( event->format() );
}
#include "korganizerplugin.moc"
--- trunk/KDE/kdepim/kontact/plugins/korganizer/todoplugin.cpp #837982:837983
@@ -226,7 +226,7 @@
event->accept();
if ( mails.count() != 1 ) {
KMessageBox::sorry( core(),
- i18n( "Drops of multiple mails is not supported." ) );
+ i18n( "Dropping multiple mails is not supported." ) );
} else {
KPIM::MailSummary mail = mails.first();
QString txt = i18n( "From: %1\nTo: %2\nSubject: %3", mail.from(), mail.to(), mail.subject() );
@@ -244,7 +244,7 @@
return;
}
- KMessageBox::sorry( core(), i18n( "Cannot handle drop events of type '%1'.", event->format() ) );
+ kWarning() << QString( "Cannot handle drop events of type '%1'." ).arg( event->format() );
}
#include "todoplugin.moc"
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list