From 6afe92e834bebe7fa3cbc441444652f917419df6 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 23 May 2005 18:42:50 +0000 Subject: Error message windows is now modal with mainwindow as its parent. --- src/info_gui.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/info_gui.cc') diff --git a/src/info_gui.cc b/src/info_gui.cc index 4536ed3..52bfa5c 100644 --- a/src/info_gui.cc +++ b/src/info_gui.cc @@ -53,6 +53,17 @@ InfoGui::~InfoGui() { } +void InfoGui::setParent(QWidget *p) +{ + pthread_mutex_lock(&mutex); + // Beginning of safezone + + parent = p; + + // End of safezone + pthread_mutex_unlock(&mutex); +} + void InfoGui::error(char *fmt, ...) { char buf[1024]; -- cgit v1.2.3