Summary: | CSV import does not work (when you don't hit the enter key) | ||
---|---|---|---|
Product: | [Applications] kaddressbook | Reporter: | Martin Koller <kollix> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | tokoe |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Martin Koller
2010-06-18 12:13:29 UTC
Hej, sorry but I can't follow you here... Can you please give a detailed description what exactly you did? Which buttons you clicked, which dialog is visible etc... Ciao, Tobias In kaddressbook I click File->Import->Import CSV File ... and the import dialog appears. I click into the "File to import" line edit and type "/tmp/somefile" and click on "Delimiter/Semicolon" and the I click on OK. => Error Dialog: "You have to assign at least one column." appears, but I don't know why as the dialog is otherwise empty. There is no column to assign (assign a column to what?) When I click again into the "File to import" line edit and hit the Enter key, suddenly the dialog is filled with data from the file (but with the KDE snapshot from today now not only the dialog gets filled but also the error dialog immediately appears, which is also not good). So the main question is: What is the user supposed to click or press _when_ so that he can select what is needed before the action can be run with the OK button ? And as this is not obvious, it should be made more clear (the work flow should be improved) SVN commit 1139925 by tokoe: Do not forward the 'return pressed' signal of the url selector to the 'Ok' button of the dialog. BUG: 242063 M +1 -0 csvimportdialog.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1139925 Hej Martin, this bug is caused by a real issue in the code and a misuse. You always have to select a file by either entering a file name _and_ hitting the return key or using the file selection dialog. If you just enter the file name but do not hit enter, then the dialog won't load the file and allow you to define the columns. This was the misuse issue. The issue in the code was that when hitting return in the url requester widget, the event has been forwarded to the Ok button which brought up the 'You have to assign at least on column' error message. This is corrected now by the above commit. Will backport it to 4.4 branch as well. Ciao, Tobias But AFAI understand it, when the user does not press enter, and only the OK button, the error dialog still pops up. What about at least doing the file load when the user hits OK and the file was not loaded before ? Then the dialog would at least show the columns and in the next step the user knows what to do. |