Skip to content

Commit 24de54f

Browse files
authored
Merge pull request #42 from geraldo/qt6_fix
fix for Qt6 compability, see #39
2 parents 5fd955e + 139a9f8 commit 24de54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

a00_qpip/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ def run_cmd(args, description="running a system command"):
8585
if process.returncode != 0:
8686
warn(f"Command failed.")
8787
message = QMessageBox(
88-
QMessageBox.Warning,
88+
QMessageBox.Icon.Warning,
8989
"Command failed",
9090
f"Encountered an error while {description} !",
9191
parent=iface.mainWindow(),
9292
)
9393
message.setDetailedText(full_output)
94-
message.exec_()
94+
message.exec()
9595
else:
9696
log("Command succeeded.")
9797
iface.messageBar().pushMessage(

0 commit comments

Comments
 (0)