This commit is contained in:
Tom LAVEILLE 2025-07-28 16:53:26 +02:00
parent 7a3814a429
commit d4b181ff61
2 changed files with 4 additions and 4 deletions

View File

@ -466,7 +466,7 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS):
try:
cutLayout = layout_name.index("")
except NameError:
except:
cutLayout = 0
if cutLayout >= 1:
@ -776,7 +776,7 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS):
self.QMBquestion.setIcon(QMessageBox.Icon.Warning)
self.QMBquestion.setText("Mise en page existante, la mise en page va être écrasée !")
self.QMBquestion.setStandardButtons(QMessageBox.StandardButton(0x00004000) | QMessageBox.StandardButton(0x00010000))
self.QMBquestion.addButton(QPushButton('Autre mise en page'),QMessageBox.ButtonRole(0))
self.QMBquestion.addButton(QPushButton('Autre mise en page'), QMessageBox.ButtonRole(0))
self.QMBquestion = self.QMBquestion.exec()
# if self.radioButton_12.isChecked() != 1:
@ -817,7 +817,7 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS):
else:
TryMessage = False
del self.QMBquestion
except NameError:
except:
TryMessage = True
if TryMessage is True:

View File

@ -3,7 +3,7 @@ import os.path
from pathlib import Path
from qgis.PyQt import uic
from qgis.PyQt.QtGui import QPixmap
# from qgis.PyQt.QtGui import QPixmap
from qgis.PyQt.QtWidgets import QDialog
from .tools.resources import devlog