Do not delete button box too early

Review Request #125498 - Created Oct. 3, 2015 and discarded

Information
Frederik Schwarzer
libkdegames
Reviewers
Kdegames

As discussed on the mailing list, the buttons just disappear when pressing Enter on the name input in kscoredialog. This was caused by a strange single-shot timer that led to the deletion of the button box.
I also moved the creation of the Close button to the slot executed when the name input is confirmed, since in the other slots the button was created just before the dialog was closed due to the ::acept and ::reject actions.

Please comment since I lack experience. :)

Compiled and tested dialog from kshisen by
- pressing enter -> close button will be shown
- clicking "forget" -> dialog closes
- clicking "remember" -> dialog closes

Albert Astals Cid
Albert Astals Cid
Frederik Schwarzer
Review request changed

Status: Discarded

Loading...