summaryrefslogtreecommitdiff
path: root/src/helpers/AsyncDialogBox.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-04-12 17:47:22 +0100
committerVaxry <vaxry@vaxry.net>2025-04-12 17:47:22 +0100
commita17cea8b8c739da23617da20aaa04d8b58dead79 (patch)
treedb3eeb7634bae400b4cf2ccb7a69ea38442439d2 /src/helpers/AsyncDialogBox.cpp
parent65389700878640fa0e90419b9cf34f48e4186fca (diff)
asyncDialogBox: fix missing pid
fixes #10056
Diffstat (limited to 'src/helpers/AsyncDialogBox.cpp')
-rw-r--r--src/helpers/AsyncDialogBox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/AsyncDialogBox.cpp b/src/helpers/AsyncDialogBox.cpp
index 3010d10e..73bae8f6 100644
--- a/src/helpers/AsyncDialogBox.cpp
+++ b/src/helpers/AsyncDialogBox.cpp
@@ -99,14 +99,14 @@ void CAsyncDialogBox::open(std::function<void(std::string)> onResolution) {
m_selfReference = m_selfWeakReference.lock();
- m_dialogPid = proc.pid();
-
if (!proc.runAsync()) {
Debug::log(ERR, "CAsyncDialogBox::open: failed to run async");
wl_event_source_remove(m_readEventSource);
return;
}
+ m_dialogPid = proc.pid();
+
// close the write fd, only the dialog owns it now
close(outPipe[1]);
}