diff options
author | deva <deva> | 2005-05-23 18:42:50 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-23 18:42:50 +0000 |
commit | 6afe92e834bebe7fa3cbc441444652f917419df6 (patch) | |
tree | 734919e1b81cf67bf1a2635c0ebb2ad33d0389b1 /src/info_gui.cc | |
parent | 10317df7721b93b4b6c4d38a75c5e13ca57bf97a (diff) |
Error message windows is now modal with mainwindow as its parent.
Diffstat (limited to 'src/info_gui.cc')
-rw-r--r-- | src/info_gui.cc | 11 |
1 files changed, 11 insertions, 0 deletions
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]; |