[Kmymoney-devel] A Little Puzzle

Thomas Baumgart thb at net-bembel.de
Mon Nov 21 20:53:39 UTC 2011


Hi,

on Friday 18 November 2011 00:49:21 Allan wrote:

> I've noticed when using the csvplugin - either the stable or the git
> version - that when a file has been imported, the File/Import and the
> File/Export items are all disabled.
> 
> Selecting main menu entries works but doesn't correct the problem.  What
> does re-enable them is selecting a ledger entry or one of the icons in
> the left pane.
> 
> The File/Import/Csvplugin menu item is disabled by design and does get
> re-enabled, as it should, when the plugin is closed.  Whether or not it
> has been closed, has no effect on the issue.  I can't try ofx or gnucash
> import.
> 
> Please, can anyone shed any light on this?

Take a look at KMyMoneyApp::slotUpdateActions(void) which contains

  bool importRunning = (d->m_qifReader != 0) || (d->m_smtReader != 0);
  action("file_export_qif")->setEnabled(fileOpen && !importRunning);
  action("file_import_qif")->setEnabled(fileOpen && !importRunning);
  action("file_import_gnc")->setEnabled(!importRunning);
  action("file_import_template")->setEnabled(fileOpen && !importRunning);
  action("file_export_template")->setEnabled(fileOpen && !importRunning);

so there must be a leftover qifReader or smtReader when your plugin finishes. 
Does slotUpdateActions gets called when the plugin finishes at all? That could 
also be a cause.

Hope this gives you a start.

-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Person A: It's an ISO standard.
Person B: ...And that means what?
 --mal (http://theangryadmin.blogspot.com/2008/04/future.html)
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20111121/d5624941/attachment.sig>


More information about the KMyMoney-devel mailing list