mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
don't throw error when preferences accessed via profiles screen
This commit is contained in:
parent
6f6378db4e
commit
ec16718584
1 changed files with 4 additions and 1 deletions
|
@ -4,12 +4,15 @@
|
|||
|
||||
import datetime, time, os
|
||||
from aqt.qt import *
|
||||
from aqt.utils import openFolder, showWarning, getText, openHelp
|
||||
from aqt.utils import openFolder, showWarning, getText, openHelp, showInfo
|
||||
import aqt
|
||||
|
||||
class Preferences(QDialog):
|
||||
|
||||
def __init__(self, mw):
|
||||
if not mw.col:
|
||||
showInfo(_("Please open a profile first."))
|
||||
return
|
||||
QDialog.__init__(self, mw, Qt.Window)
|
||||
self.mw = mw
|
||||
self.prof = self.mw.pm.profile
|
||||
|
|
Loading…
Reference in a new issue