GNOME Bugzilla – Bug 336192
QIF Import: Allow new namespaces when defining new securities
Last modified: 2018-06-29 21:00:31 UTC
When the QIF import druid is asking the user for information about each security, it presents a pulldown list from which the user selects a stock exchange (or other security type). When the user manually enters a security type (in my case TSX, but there are many exchanges in the world), the QIF import druid should add that to the pulldown list for subsequent appearances of the this page. It would be helpful as the user would not have to enter it every time. Other information: SVN version is 13702. Related bug: 123312.
With svn/trunk@15951 / 2.1.x, I can't even find an option/ability to enter a different stock exchange. What do you mean?
It's been a while, but I'm pretty sure the means of entering the stock exchange was via a "combo box" rather than a "pulldown list". Sorry for any confusion. Of course, I was using a considerably older version. I haven't had a chance to try any 2.1.x versions.
When was it a combo box? (Just interested in looking at the actual history and want a good place to start looking)
I don't know the history, but in 2.2.4 it is implemented as a combo box (gtkComboBoxEntry widget) and the callbacks then de-fang it so that it behaves effectively as a dropdown list. I am working on changing it to allow new entries to be made. Alternatively, I could leave the combo box as-is, and instead add a "New" button for the user to click if they genuinely intend to create a new namespace. But that would be harder to implement, and sort of defeats the purpose of a combo box.
Created attachment 109517 [details] [review] Proposed patch Here's my proposed patch, if anyone would like to test it or point out any silly mistakes. I briefly tested it, and I think it works correctly, but I won't commit it until I get back from traveling in early May. P.S. There are few unrelated fixes for memory leaks included.
Patch committed as r17150. Requesting backport for 2.2.
Applied to branches/2.2 as r17356 for inclusion in GnuCash 2.2.6. Thanks!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=336192. Please update any external references or bookmarks.