From 198b0d886817f2c5bc97cfd11857d4b314dffae3 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 10 Jun 2010 07:03:06 +0000 Subject: Add transaction support on database pr. pracro session. Makes it possible to discard all edited macros. --- client/pracro.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/pracro.cc') 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(); } -- cgit v1.2.3