Thread
:
Prevent double press? [SOLVED]
View Single Post
Berserk
2010-09-26 , 13:45
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#
1
There's only one bug that keeps me from promoting Wallpaeper to Extras-testing, which is the following:
It's possible to open multiple windows after pressing a button more than once.
How can I make sure a button can only be pressed once? (or how can I make sure only one window is opened?)
I've tried: (after button press)
- Disable button before creating a new Manager window (but that seemed to go simultaneously, so the button was disabled just before or after the new window shows)
- Disable the button, if(disabled) - open window (same as above, strange..)
- A boolean that decides whether to open it or not (false if button pressed)
- disconnect() after button press
- if a Manager window is made, don't make it again (didn't work..)
None of these worked
It doesn't crash with multiple windows, there are just multiple windows without a parent window
So can anyone help me with either:
- Preventing double button press
- Setting QListWidget icons faster
Many thanks in advance!
__________________
Wallpaeper
- Desktop background manager (in Extras!)
Config Reader
- Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any
donations
Last edited by Berserk; 2010-09-27 at
19:20
. Reason: Added [SOLVED] to title
Quote & Reply
|
Berserk
View Public Profile
Send a private message to Berserk
Find all posts by Berserk