diff --git a/src/Mod/BIM/Resources/ui/dialogLibrary.ui b/src/Mod/BIM/Resources/ui/dialogLibrary.ui index 0a1ccadf7c..f186057845 100644 --- a/src/Mod/BIM/Resources/ui/dialogLibrary.ui +++ b/src/Mod/BIM/Resources/ui/dialogLibrary.ui @@ -200,16 +200,6 @@ - - - - Open the search results inside FreeCAD's web browser instead of the system browser - - - Search using FreeCAD's web view - - - diff --git a/src/Mod/BIM/bimcommands/BimLibrary.py b/src/Mod/BIM/bimcommands/BimLibrary.py index 4df89219af..5d73982177 100644 --- a/src/Mod/BIM/bimcommands/BimLibrary.py +++ b/src/Mod/BIM/bimcommands/BimLibrary.py @@ -178,8 +178,6 @@ class BIM_Library_TaskPanel: self.form.checkOnline.setChecked(PARAMS.GetBool("LibraryOnline", not offlinemode)) self.form.checkFCStdOnly.toggled.connect(self.onCheckFCStdOnly) self.form.checkFCStdOnly.setChecked(PARAMS.GetBool("LibraryFCStdOnly", False)) - self.form.checkWebSearch.toggled.connect(self.onCheckWebSearch) - self.form.checkWebSearch.setChecked(PARAMS.GetBool("LibraryWebSearch", False)) self.form.check3DPreview.toggled.connect(self.onCheck3DPreview) self.form.check3DPreview.setChecked(PARAMS.GetBool("3DPreview", False)) @@ -529,13 +527,7 @@ class BIM_Library_TaskPanel: from PySide import QtGui - s = PARAMS.GetBool("LibraryWebSearch", False) - if s: - import WebGui - - WebGui.openBrowser(url) - else: - QtGui.QDesktopServices.openUrl(url) + QtGui.QDesktopServices.openUrl(url) def needsFullSpace(self): @@ -889,12 +881,6 @@ class BIM_Library_TaskPanel: self.dirmodel.setNameFilters(self.getFilters()) self.onCheckOnline(self.form.checkOnline.isChecked()) - def onCheckWebSearch(self, state): - """if the web search checkbox is clicked""" - - # save state - PARAMS.SetBool("LibraryWebSearch", state) - def onCheck3DPreview(self, state): """if the 3D preview checkbox is clicked"""