Przeglądaj źródła

Fix reloadModules in ctkCommandLineModuleExplorer

Matt Clarkson 10 lat temu
rodzic
commit
d6e4070825

+ 5 - 0
Applications/ctkCommandLineModuleExplorer/ctkCmdLineModuleExplorerMainWindow.cpp

@@ -335,6 +335,11 @@ void ctkCLModuleExplorerMainWindow::on_actionReload_Modules_triggered()
     urls.push_back(ref.location());
   }
 
+  foreach (ctkCmdLineModuleReference ref, moduleRefs)
+  {
+    this->moduleManager.unregisterModule(ref);
+  }
+
   QFuture<ctkCmdLineModuleReferenceResult> future = QtConcurrent::mapped(urls, ctkCmdLineModuleConcurrentRegister(&this->moduleManager));
   future.waitForFinished();