summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/mainwindowimp.cpp
Unidiff
Diffstat (limited to 'noncore/net/networksetup/mainwindowimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/mainwindowimp.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/net/networksetup/mainwindowimp.cpp b/noncore/net/networksetup/mainwindowimp.cpp
index 4a088cb..f9ca83b 100644
--- a/noncore/net/networksetup/mainwindowimp.cpp
+++ b/noncore/net/networksetup/mainwindowimp.cpp
@@ -75,13 +75,12 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par
75} 75}
76 76
77/** 77/**
78 * Deconstructor. Save profiles. Delete loaded libraries. 78 * Deconstructor. Save profiles. Delete loaded libraries.
79 */ 79 */
80MainWindowImp::~MainWindowImp(){ 80MainWindowImp::~MainWindowImp(){
81 qDebug("Deleting main window");
82 // Save profiles. 81 // Save profiles.
83 Config cfg("NetworkSetup"); 82 Config cfg("NetworkSetup");
84 cfg.setGroup("General"); 83 cfg.setGroup("General");
85 cfg.writeEntry("Profiles", profiles.join(" ")); 84 cfg.writeEntry("Profiles", profiles.join(" "));
86 85
87 // Delete all interfaces that don't have owners. 86 // Delete all interfaces that don't have owners.
@@ -92,15 +91,15 @@ MainWindowImp::~MainWindowImp(){
92 } 91 }
93 92
94 // Delete Modules and Libraries 93 // Delete Modules and Libraries
95 QMap<Module*, QLibrary*>::Iterator it; 94 QMap<Module*, QLibrary*>::Iterator it;
96 for( it = libraries.begin(); it != libraries.end(); ++it ){ 95 for( it = libraries.begin(); it != libraries.end(); ++it ){
97 delete it.key(); 96 delete it.key();
97 // I wonder why I can't delete the libraries
98 //delete it.data(); 98 //delete it.data();
99 } 99 }
100 qDebug("Done deleting main window");
101} 100}
102 101
103/** 102/**
104 * Load all modules that are found in the path 103 * Load all modules that are found in the path
105 * @param path a directory that is scaned for any plugins that can be loaded 104 * @param path a directory that is scaned for any plugins that can be loaded
106 * and attempts to load them 105 * and attempts to load them