On Thursday 07 April 2005 18:06, Stefan Gehn wrote:
> #ifdef HAVE_LIBGPGME
> it seems, I don't have/want gpg and get:

Please try this patch.

Alex
--- licq/plugins/qt-gui/src/mainwin.cpp.orig	2005-04-08 11:22:22.505941552 +0200
+++ licq/plugins/qt-gui/src/mainwin.cpp	2005-04-08 11:23:06.631233488 +0200
@@ -3689,6 +3689,7 @@
     u->SetAutoSecure( !u->AutoSecure() );
     break;
   case 7:
+#ifdef HAVE_LIBGPGME
     if ( strcmp(u->GPGKey(),"")!=0 )
       u->SetUseGPG( !u->UseGPG() );
     else
@@ -3698,6 +3699,7 @@
       new GPGKeySelect( m_szUserMenuId, m_nUserMenuPPID );
     }
     break;
+#endif
   case 8:
     u->SetSendRealIp( !u->SendRealIp() );
     break;
@@ -4061,8 +4063,10 @@
    if (pmSharedFiles.isNull())
      pmSharedFiles = QPixmap(pixSharedFiles_xpm);
 
+#ifdef HAVE_LIBGPGME
    pmGPGKey = QPixmap(pixKeyEnabled_xpm);
    pmGPGKeyDisabled = QPixmap(pixKeyDisabled_xpm);
+#endif
 
    if (!_bInitial)
    {
@@ -4389,7 +4393,9 @@
    mnuSystem->insertItem(tr("&Options..."), this, SLOT(popupOptionsDlg()));
    mnuSystem->insertItem(tr("S&kin Browser..."), this, SLOT(showSkinBrowser()));
    mnuSystem->insertItem(tr("&Plugin Manager..."), this, SLOT(showPluginDlg()));
+#ifdef HAVE_LIBGPGME
    mnuSystem->insertItem(pmGPGKey, tr("&GPG Key Manager..."), this, SLOT(showGPGKeyManager()));
+#endif
    mnuSystem->insertSeparator();
    mnuSystem->insertItem(tr("Sa&ve Settings"), this, SLOT(saveOptions()));
    mnuSystem->insertItem(tr("&Help"), mnuHelp);
@@ -4647,7 +4653,9 @@
 
 void CMainWindow::showGPGKeyManager()
 {
+#ifdef HAVE_LIBGPGME
   ( new GPGKeyManager() )->show();
+#endif
 }
 
 void CMainWindow::showPluginDlg()

Reply via email to