Code refactoring
[vlp.git] / src / lgconfig / lgconfig.cpp
index 8739358531aecf8c439917a697d1afd65a079e47..2511b5bf02838a63c8ada14d3483e829ed1f2f08 100644 (file)
@@ -37,12 +37,13 @@ void QInstall::on_actionConfigure_triggered()
 {
        dialog::NodeListDialog dialog(&Nodes, this);
 
-       VLPEntry *pom;
-       int i;
-       char pomstr[255];
-
        if (dialog.exec()) {
                if (!Nodes.isEmpty()) {
+
+                       VLPEntry *pom;
+                       int i;
+                       char pomstr[255];
+
                        QListIterator<VLPEntry *> nodesIterator(Nodes);
 
                        while (nodesIterator.hasNext()) {