summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2015-08-29 15:03:54 +0200
committerVolker Krause <[email protected]>2015-08-29 15:03:54 +0200
commitfe14729c5cf8550b2487d917f5b7499fa498ac76 (patch)
tree19865e331c2359134373ea4a246f9499d52a85ad
parentc40edb0e8b120b96111e3835c6fb269c03396160 (diff)
Fix crash in cryptocomposertest.
-rw-r--r--messagecomposer/autotests/CMakeLists.txt1
-rw-r--r--messagecomposer/autotests/cryptocomposertest.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/messagecomposer/autotests/CMakeLists.txt b/messagecomposer/autotests/CMakeLists.txt
index 5f211c4..3e378b5 100644
--- a/messagecomposer/autotests/CMakeLists.txt
+++ b/messagecomposer/autotests/CMakeLists.txt
@@ -32,6 +32,7 @@ macro( add_messagecomposer_cryptotest _source )
KF5::QGpgme
KF5::IconThemes
KF5::Completion
+ KF5::MailTransport
)
add_gpg_crypto_test(${_name} ${_name})
endmacro()
diff --git a/messagecomposer/autotests/cryptocomposertest.cpp b/messagecomposer/autotests/cryptocomposertest.cpp
index 03c1f1a..40a7ce6 100644
--- a/messagecomposer/autotests/cryptocomposertest.cpp
+++ b/messagecomposer/autotests/cryptocomposertest.cpp
@@ -34,6 +34,8 @@
#include <kmime/kmime_headers.h>
using namespace KMime;
+#include <MailTransport/TransportComboBox>
+
#include <messagecomposer/composer/composer.h>
#include <messagecomposer/composer/composerviewbase.h>
#include <messagecomposer/composer-ng/richtextcomposer.h>
@@ -212,10 +214,12 @@ void CryptoComposerTest::testEditEncryptAttachments()
AttachmentControllerBase controller(&model, 0, 0);
RecipientsEditor recipientEditor;
MessageComposer::RichTextComposer editor;
+ MailTransport::TransportComboBox transportCombo;
view.setAttachmentModel(&model);
view.setAttachmentController(&controller);
view.setRecipientsEditor(&recipientEditor);
view.setEditor(&editor);
+ view.setTransportCombo(&transportCombo);
// Let's load the email to the viewer
view.setMessage(message, true);
@@ -280,10 +284,12 @@ void CryptoComposerTest::testEditEncryptAndLateAttachments()
AttachmentControllerBase controller(&model, 0, 0);
RecipientsEditor recipientEditor;
MessageComposer::RichTextComposer editor;
+ MailTransport::TransportComboBox transportCombo;
view.setAttachmentModel(&model);
view.setAttachmentController(&controller);
view.setRecipientsEditor(&recipientEditor);
view.setEditor(&editor);
+ view.setTransportCombo(&transportCombo);
// Let's load the email to the viewer
view.setMessage(message, true);