Anki/aqt
Damien Elmes 9cc99cdced possible fix for " super-class ... Preferences was never called"
Can't reproduce the issue, but it seems the user was able to open the
preferences screen when no collection was loaded. If an error was
caught in loadCollection() the main window was not being hidden, so
perhaps a timing issue was preventing the profiles screen from taking
modal focus.

Removed the check in the prefs init - it is hopefully no longer
necessary, and returning before QDialog.__init__() was called was
causing the problem.

Caught exception:
  File "aqt/webview.py", line 27, in cmd
  File "aqt/webview.py", line 85, in _onCmd
  File "aqt/webview.py", line 360, in _onBridgeCmd
  File "aqt/toolbar.py", line 56, in _linkHandler
  File "aqt/toolbar.py", line 80, in _syncLinkHandler
  File "aqt/main.py", line 669, in onSync
  File "aqt/main.py", line 365, in unloadCollection
  File "aqt/main.py", line 611, in closeAllWindows
  File "aqt/__init__.py", line 110, in closeAll
<class 'RuntimeError'>: super-class __init__() of type Preferences was never called
2019-04-21 19:02:03 +10:00
..
__init__.py keep global i18n handlers working 2019-03-07 18:34:22 +10:00
about.py explicitly import _ and ngettext 2019-03-04 11:58:34 +10:00
addcards.py tidy up unused imports 2019-03-04 17:25:19 +10:00
addons.py support conflicts when downloading from AnkiWeb 2019-04-16 17:44:00 +10:00
browser.py preview code shouldn't assume self.card is valid 2019-04-15 12:20:12 +10:00
clayout.py fix memory leak in card layout screen 2019-03-26 11:31:40 +09:00
customstudy.py allow decreasing daily limits in custom study 2019-03-05 09:06:17 +10:00
deckbrowser.py tidy up unused imports 2019-03-04 17:25:19 +10:00
deckchooser.py explicitly import _ and ngettext 2019-03-04 11:58:34 +10:00
deckconf.py tidy up unused imports 2019-03-04 17:25:19 +10:00
downloader.py tidy up unused imports 2019-03-04 17:25:19 +10:00
dyndeckconf.py explicitly import _ and ngettext 2019-03-04 11:58:34 +10:00
editcurrent.py fix some warnings 2019-03-04 16:01:10 +10:00
editor.py handle blur/key event before note id set 2019-03-10 08:24:44 +10:00
errors.py friendly message for full disk 2019-04-08 15:32:58 +10:00
exporting.py add option to strip html in export 2019-03-05 08:57:53 +10:00
fields.py explicitly import _ and ngettext 2019-03-04 11:58:34 +10:00
importing.py use raw strings for regexs 2019-03-04 17:03:43 +10:00
main.py possible fix for " super-class ... Preferences was never called" 2019-04-21 19:02:03 +10:00
mediasrv.py Merge pull request #288 from glutanimate/mediasrv-addon-support 2019-03-04 18:03:48 +10:00
modelchooser.py tidy up unused imports 2019-03-04 17:25:19 +10:00
models.py explicitly import _ and ngettext 2019-03-04 11:58:34 +10:00
overview.py tidy up unused imports 2019-03-04 17:25:19 +10:00
pinnedmodules.py tidy up unused imports 2019-03-04 17:25:19 +10:00
preferences.py possible fix for " super-class ... Preferences was never called" 2019-04-21 19:02:03 +10:00
profiles.py check a profile exists every time 2019-03-06 15:27:13 +10:00
progress.py fix inconsistent indentation 2019-03-04 16:54:22 +10:00
qt.py tidy up unused imports 2019-03-04 17:25:19 +10:00
reviewer.py tidy up unused imports 2019-03-04 17:25:19 +10:00
sound.py explicitly import _ and ngettext 2019-03-04 11:58:34 +10:00
stats.py explicitly import _ and ngettext 2019-03-04 11:58:34 +10:00
studydeck.py fix some warnings 2019-03-04 16:01:10 +10:00
sync.py fix some timers failing to fire 2019-04-21 18:56:30 +10:00
tagedit.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
taglimit.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
toolbar.py avoid highlighting/tabbing to top bar 2019-04-10 15:16:22 +10:00
update.py explicitly import _ and ngettext 2019-03-04 11:58:34 +10:00
utils.py fix incorrect qt constructor call 2019-03-04 15:59:53 +10:00
webview.py Revert "Workaround for AltGr '@' issue." 2019-04-16 13:39:40 +10:00
winpaths.py tweak coding statement to make xgettext happy 2019-03-05 09:59:21 +10:00