[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdeui
From: Carsten Pfeiffer <carpdjih () mailbox ! tu-berlin ! de>
Date: 2002-12-21 21:00:56
[Download RAW message or body]
CVS commit by pfeiffer:
revert to old RESTORE macro definition. While not explicitly supported,
some apps used it like
RESTORE(KaspalisteApp(dbname));
i.e. with a parameter. The template-based macro doesn't allow that.
M +5 -2 kmainwindow.h 1.68
--- kdelibs/kdeui/kmainwindow.h #1.67:1.68
@@ -771,5 +771,8 @@ private:
};
-#define RESTORE(type) kRestoreMainWindows<type>();
+#define RESTORE(type) { int n = 1;\
+ while (KMainWindow::canBeRestored(n)){\
+ (new type)->restore(n);\
+ n++;}}
#define KDE_RESTORE_MAIN_WINDOWS_NUM_TEMPLATE_ARGS 3
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic