View Single Post
Old 02-03-2011, 07:20 PM   #4
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
why not just return a QLabel as the widget with the error message
You are going to get a fairly "large" message box though, aren't you? As the dialog size will have been restored from when last used "successfully" with it's big grid etc on it. No major, just saying...

Also you will still need to detect your "error" situation in validate and return False from that to prevent save_settings from being invoked.
kiwidude is offline   Reply With Quote