Repository navigation
Conversation
| { | ||
| QMessageBox::warning( this, "Loading Project Without Author Information", | ||
| "The loaded configuration package does not include author information.\n" | ||
| "Make sure you regenerate the '.setup_assistant' and 'package.xml' files to add it."); |
There was a problem hiding this comment.
When loading an existing package, package.xml might already contain valid author information. With this hint you suggest to overwrite this!
There was a problem hiding this comment.
On Tue, Aug 30, 2016 at 01:31:36AM -0700, Robert Haschke wrote:
When loading an existing package,
package.xmlmight already contain valid author information. With this hint you suggest to overwrite this!
Yes. Many packages do not contain valid information in the package.xml and they are the reason for this whole author-information addition.
Do you have a suggestion how to improve the message?
There was a problem hiding this comment.
A very simple solution could be to regex-parse the package.xml for the old dummy author information and only issue this warning in that case.
There was a problem hiding this comment.
you're welcome to implement this :)
I will not be around for the next one-and-a-half weeks.
In any case, we have to tell the user to regenerate .setup_assistant because they are not able to generate anything if they don't have author information stored in there.
However, we could rephrase the notice.
|
@rhaschke I changed the message. |
| { | ||
| if ( !create_new_package_ && config_data_->author_name_.empty() && config_data_->author_email_.empty() ) | ||
| { | ||
| QMessageBox::warning( this, "Loading Project Without Author Information", |
There was a problem hiding this comment.
Consider renaming the window title to "Missing author information". The proposed one seems quite long for a window title.
There was a problem hiding this comment.
…ation The author-information fields stay empty until the user regenerates .setup_assistant to add the information there. This is unintuitive and should be explained. This message tells the user to do that when loading a configuration without author information.
534dd8b to
817198c
Compare
|
Thinking a little bit more about this PR, I came to the conclusion, that we shouldn't bother the user with even more warning messages, but instead fix the reason, why |
|
On Wed, Sep 14, 2016 at 02:30:13PM -0700, Robert Haschke wrote:
I thought you would address the comments on v4hn#1 over there. I could also file a new request with a pr- branch if you prefer that, but that would require a new request. |
|
Recreated in #221. |
@jan0e's code in #154 loads the author information from .setup_assistent .
This entails that when a user loads an existing config, they have to
re-enter their contact information over and over again until they also generate the
modified .setup_assistant file. This adds a message to tell them they should
do just that.