summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--opentrack-api/opentrack-guts.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/opentrack-api/opentrack-guts.h b/opentrack-api/opentrack-guts.h
index fd94ea34..db897edc 100644
--- a/opentrack-api/opentrack-guts.h
+++ b/opentrack-api/opentrack-guts.h
@@ -6,6 +6,7 @@
#include <QStringList>
#include <QDebug>
#include <QIcon>
+#include <QShowEvent>
#include <iostream>
#include <cstring>
#include <QString>
@@ -31,7 +32,15 @@ class MyFrame : public QFrame {
public:
MyFrame(void* parent)
{
- create((WId) parent);
+ if (parent == (void*) -1)
+ {
+ show();
+ setVisible(false);
+ }
+ else
+ {
+ create((WId) parent);
+ }
}
explicit MyFrame() {}
};