summaryrefslogtreecommitdiff
path: root/client/pracro.cc
diff options
context:
space:
mode:
authordeva <deva>2010-06-10 07:03:06 +0000
committerdeva <deva>2010-06-10 07:03:06 +0000
commit198b0d886817f2c5bc97cfd11857d4b314dffae3 (patch)
tree4fc2d51de46ab69b9e67149abf0ab6a332032f27 /client/pracro.cc
parent730eb796bbce6f124be9194f1565b7dda1daddf1 (diff)
Add transaction support on database pr. pracro session. Makes it possible to discard all edited macros.
Diffstat (limited to 'client/pracro.cc')
-rw-r--r--client/pracro.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/pracro.cc b/client/pracro.cc
index bb2d952..ad46085 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -54,7 +54,7 @@ QString host;
quint16 port;
QFont *fixedfont;
-
+QWidget *viewer = NULL;
static void print_usage()
{
printf("Usage: pracro -m MACRO -c CPR -U USER\n");
@@ -173,9 +173,9 @@ int main(int argc, char *argv[])
MainWindow mainwindow(cpr, templ, host, port, user);
mainwindow.show();
- Viewer viewer(cpr, templs, host, port, user, journalpath);
- viewer.show();
-
+ Viewer v(cpr, templs, host, port, user, journalpath);
+ viewer = &v;
+ v.show();
return app.exec();
}