Commit 5e90e047 authored by Laurent Montel's avatar Laurent Montel 😁

Add info when list is empty

parent 4a94b81c
......@@ -33,6 +33,10 @@ int main(int argc, char **argv)
QCoreApplication app(argc, argv);
const QVector<MailTransport::TransportAbstractPlugin *> lst = MailTransport::TransportPluginManager::self()->pluginsList();
if (lst.isEmpty()) {
qDebug() << "Any plugin found. Please verify your installation";
return 0;
}
for (MailTransport::TransportAbstractPlugin *plugin : lst) {
const QVector<MailTransport::TransportAbstractPluginInfo> lstPluginInfo = plugin->names();
for (const MailTransport::TransportAbstractPluginInfo &info : lstPluginInfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment