[pan2] fix for non-gpg environments
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [pan2] fix for non-gpg environments
- Date: Thu, 31 May 2012 04:58:26 +0000 (UTC)
commit ebcd7dc26ab92ff17c73bfc74ea211f2674cfa86
Author: Heinrich MÃller <henmull src gnome org>
Date:   Thu May 31 06:57:50 2012 +0200
    fix for non-gpg environments
 pan/gui/gui.cc |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/pan/gui/gui.cc b/pan/gui/gui.cc
index bf45c47..041397f 100644
--- a/pan/gui/gui.cc
+++ b/pan/gui/gui.cc
@@ -192,10 +192,15 @@ GUI :: root_realized_cb (GtkWidget*, gpointer self_gpointer)
   StringView last_msg = gui->_prefs.get_string("last-opened-msg", "");
   if (!last_msg.empty())
   {
-    GPGDecErr err;
     mid_sequence_t files;
     files.push_back(last_msg);
-    GMimeMessage* msg = gui->_cache.get_message(files,err);
+    GMimeMessage* msg;
+#ifdef HAVE_GMIME_CRYPTO
+    GPGDecErr err;
+    msg = gui->_cache.get_message(files,err);
+#else
+    msg = gui->_cache.get_message(files);
+#endif
     gui->_body_pane->set_text_from_message(msg);
 
 //    Article article;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]