r20802 - gnucash/trunk/src/gnc - [Cutecash] Add predicate of whether a file is open.

Christian Stimming cstim at code.gnucash.org
Mon Jun 27 03:24:00 EDT 2011


Author: cstim
Date: 2011-06-27 03:23:59 -0400 (Mon, 27 Jun 2011)
New Revision: 20802
Trac: http://svn.gnucash.org/trac/changeset/20802

Modified:
   gnucash/trunk/src/gnc/mainwindow.hpp
Log:
[Cutecash] Add predicate of whether a file is open.

Modified: gnucash/trunk/src/gnc/mainwindow.hpp
===================================================================
--- gnucash/trunk/src/gnc/mainwindow.hpp	2011-06-25 14:39:00 UTC (rev 20801)
+++ gnucash/trunk/src/gnc/mainwindow.hpp	2011-06-27 07:23:59 UTC (rev 20802)
@@ -59,6 +59,9 @@
     MainWindow();
     ~MainWindow();
 
+    const QString& getCurrentFilename() const { return m_currentFilename; }
+    bool hasOpenedFile() const { return !m_currentFilename.isEmpty(); }
+
 public slots:
     void accountItemActivated(const QModelIndex & index);
     void loadFileMaybe(const QString &fileName);



More information about the gnucash-changes mailing list