author | zecke <zecke> | 2002-09-26 17:15:24 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-26 17:15:24 (UTC) |
commit | e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591 (patch) (side-by-side diff) | |
tree | e29c318cfd41e2ad7feb4834300e61788eda8c0e | |
parent | 99487852cca099f2ccaca611d0769af97ecfbc1f (diff) | |
download | opie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.zip opie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.tar.gz opie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.tar.bz2 |
temporaray work around for a crash
Double deletion of the setMainWindow happens....
-rw-r--r-- | noncore/graphics/drawpad/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/graphics/drawpad/main.cpp b/noncore/graphics/drawpad/main.cpp index b362962..cb02301 100644 --- a/noncore/graphics/drawpad/main.cpp +++ b/noncore/graphics/drawpad/main.cpp @@ -18,9 +18,11 @@ int main(int argc, char **argv) { QPEApplication a(argc, argv); - DrawPad mw; - a.showMainWidget(&mw); + DrawPad *mw = new DrawPad();; + a.showMainWidget(mw ); + return a.exec(); + delete mw; } |