[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    KDE_3_2_BRANCH: kdelibs/kate/part
From:       Anders Lund <anders () alweb ! dk>
Date:       2004-03-25 22:03:33
Message-ID: 20040325220333.0281B997E () office ! kde ! org
[Download RAW message or body]

CVS commit by alund: 

Only try the factory a few times, to make clients not using the Katepart GUI
happy -- now also in BRANCH :)

CCMAIL: kwrite-devel@kde.org


  M +8 -1      katebookmarks.cpp   1.29.2.3
  M +2 -0      katebookmarks.h   1.10.2.4


--- kdelibs/kate/part/katebookmarks.cpp  #1.29.2.2:1.29.2.3
@@ -127,8 +127,15 @@ void KateBookmarks::connectMenuAndDisCon
       return;
     }
-
     // FUCKY-SUCKY -- try later
+    if ( _tries > 3 ) // give up
+    {
+      m_view->removeEventFilter( this );
+      return;
+    }
+
     if ( m_view->isVisible() )
       QTimer::singleShot( 0, this, SLOT(connectMenuAndDisConnectAgain()));
+
+    _tries++;
 }
 

--- kdelibs/kate/part/katebookmarks.h  #1.10.2.3:1.10.2.4
@@ -66,4 +66,6 @@ class KateBookmarks : public QObject
     KAction*                     m_goPrevious;
     Sorting                      m_sorting;
+
+    int _tries; // menu connection hack
 };
 


_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic