Modified some modal dialog use to ensure they have a valid parent. release-10.1.6

Sat, 26 Oct 2024 11:46:18 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Oct 2024 11:46:18 +0200
changeset 62
f5565a5417e2
parent 61
9850ac542faf
child 63
b90d8e5d22fa

Modified some modal dialog use to ensure they have a valid parent.

OllamaInterface/OllamaHistoryWidget.py file | annotate | diff | comparison | revisions
OllamaInterface/OllamaWidget.py file | annotate | diff | comparison | revisions
PluginAiOllama.py file | annotate | diff | comparison | revisions
PluginAiOllama.zip file | annotate | diff | comparison | revisions
changelog.md file | annotate | diff | comparison | revisions
--- a/OllamaInterface/OllamaHistoryWidget.py	Thu Oct 24 14:56:16 2024 +0200
+++ b/OllamaInterface/OllamaHistoryWidget.py	Sat Oct 26 11:46:18 2024 +0200
@@ -146,6 +146,7 @@
             title=self.__title,
             model=self.__model,
             selectableModels=self.__ollamaWidget.getSelectableModels(),
+            parent=self,
         )
         if dlg.exec() == QDialog.DialogCode.Accepted:
             self.__title, self.__model = dlg.getData()
--- a/OllamaInterface/OllamaWidget.py	Thu Oct 24 14:56:16 2024 +0200
+++ b/OllamaInterface/OllamaWidget.py	Sat Oct 26 11:46:18 2024 +0200
@@ -863,6 +863,7 @@
             message=self.tr("Select the chats to be exported:"),
             checkBoxSelection=True,
             showSelectAll=True,
+            parent=self,
         )
         if dlg.exec() == QDialog.DialogCode.Accepted:
             selectedChats = dlg.getSelection()
@@ -1000,7 +1001,7 @@
 
         models = self.__client.listDetails()
         if models:
-            dlg = OllamaDetailedModelsDialog(models, self)
+            dlg = OllamaDetailedModelsDialog(models, parent=self)
             dlg.exec()
         else:
             EricMessageBox.information(
@@ -1018,7 +1019,7 @@
 
         models = self.__client.listRunning()
         if models:
-            dlg = OllamaRunningModelsDialog(models, self)
+            dlg = OllamaRunningModelsDialog(models, parent=self)
             dlg.exec()
         else:
             EricMessageBox.information(
--- a/PluginAiOllama.py	Thu Oct 24 14:56:16 2024 +0200
+++ b/PluginAiOllama.py	Sat Oct 26 11:46:18 2024 +0200
@@ -33,7 +33,7 @@
     "author": "Detlev Offenbach <detlev@die-offenbachs.de>",
     "autoactivate": True,
     "deactivateable": True,
-    "version": "10.1.5",
+    "version": "10.1.6",
     "className": "PluginOllamaInterface",
     "packageName": "OllamaInterface",
     "shortDescription": "Graphical 'ollama' client for eric-ide.",
Binary file PluginAiOllama.zip has changed
--- a/changelog.md	Thu Oct 24 14:56:16 2024 +0200
+++ b/changelog.md	Sat Oct 26 11:46:18 2024 +0200
@@ -1,6 +1,10 @@
 ChangeLog
 ---------
 
+__Version 10.1.6__
+
+- Modified some modal dialog use to ensure they have a valid parent.
+
 __Version 10.1.5__
 
 - adjusted code for eric7 24.10 and newer

eric ide

mercurial