blob: 85e58089b1a3f4f6d8628446fc94e796121e00e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
diff -udBbr kdeutils-3.2.2/work/kdeutils-3.2.2/ksim/library/themeloader.h kdeutils-3.2.2-fix1/work/kdeutils-3.2.2/ksim/library/themeloader.h
--- kdeutils-3.2.2/work/kdeutils-3.2.2/ksim/library/themeloader.h 2003-09-21 12:42:18.000000000 +0400
+++ kdeutils-3.2.2-fix1/work/kdeutils-3.2.2/ksim/library/themeloader.h 2004-04-23 23:51:04.293387112 +0400
@@ -45,6 +45,7 @@
class Theme
{
friend class ThemeLoader;
+ friend class ThemePrefs;
public:
enum PixmapType { KrellPanel = 0, KrellMeter, KrellSlider };
~Theme();
diff -udBbr kdeutils-3.2.2/work/kdeutils-3.2.2/ksim/ksimview.cpp kdeutils-3.2.2-fix1/work/kdeutils-3.2.2/ksim/ksimview.cpp
--- kdeutils-3.2.2/work/kdeutils-3.2.2/ksim/ksimview.cpp 2003-10-26 13:58:52.000000000 +0300
+++ kdeutils-3.2.2-fix1/work/kdeutils-3.2.2/ksim/ksimview.cpp 2004-04-23 23:33:08.507931360 +0400
@@ -271,13 +271,14 @@
ChangedPluginList::ConstIterator it;
for (it = list.begin(); it != list.end(); ++it) {
if ((*it).isDifferent()) {
+ KDesktopFile tempKDesktopFile((*it).filename());
if ((*it).isEnabled()) { // Go through the added/removed plugins and load/unload them
- addPlugin(KDesktopFile((*it).filename()));
+ addPlugin(tempKDesktopFile);
m_prefDialog->createPage((*it).libName());
}
else {
m_prefDialog->removePage((*it).libName());
- removePlugin(KDesktopFile((*it).filename()));
+ removePlugin(tempKDesktopFile);
}
}
}
@@ -303,8 +304,10 @@
{
QStringList locatedFiles = KGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop");
QStringList::ConstIterator it;
- for (it = locatedFiles.begin(); it != locatedFiles.end(); ++it)
- addPlugin(KDesktopFile(*it, true));
+ for (it = locatedFiles.begin(); it != locatedFiles.end(); ++it) {
+ KDesktopFile tempKDesktopFile(*it, true);
+ addPlugin(tempKDesktopFile);
+ }
}
void KSim::MainView::addPlugin(const KDesktopFile &file, bool force)
|