Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't save jabber without user confirmation. #446

Merged
merged 1 commit into from Mar 29, 2015

Conversation

i5o
Copy link
Contributor

@i5o i5o commented Dec 13, 2014

Right now the jabber server entry autosaves when the user presses enter.
With this patch, that no longer happens. The user must click the accept
button in the control panel in order to save a new jabber server entry.

The timeout has been removed because we need now reset the server immediately
when the accept button is pressed.

The change-signal handler has been removed because we only want to change the
server name when the user clicks on accept button.

An apply flag has been added so if the user clicks on accept, we know
whether or not the server should be updated.

Right now the jabber autosave when the user press enter in entry,
with this patch, that no happens. The users needs to click accept
button in the control panel.

Removed the timeout, because we need to set it inmediatly.
Removed the change signal in entry, because, now its set when
the user click on accept and no enter in entry..

Added "apply", so, if the user click on  accept, if apply exists,
it call apply_jabber, the function get the text of the entry,
and set it to current jabber server.

We need that, because If we dont want to show
restart alert, we couldnt get the response.

Possible Fix SL#618
@tchx84
Copy link
Member

tchx84 commented Dec 16, 2014

Is there a ticket behind this? Or a GCI task? EDIT: found it http://bugs.sugarlabs.org/ticket/618

@i5o
Copy link
Contributor Author

i5o commented Dec 16, 2014

@tchx84 Forget to add it to github description, SL#618

@samdroid-apps samdroid-apps merged commit 2c95a2d into sugarlabs:master Mar 29, 2015
@samdroid-apps
Copy link
Contributor

Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants