make sure css is always available in deck browser

This commit is contained in:
Damien Elmes 2011-03-27 15:22:34 +09:00
parent 698ba38e74
commit bfa594a5d0
2 changed files with 2 additions and 2 deletions

View file

@ -148,9 +148,9 @@ a { font-size: 80%; }
"""
def _renderPage(self):
css = self.mw.sharedCSS + self._css
if self._decks:
buf = ""
css = self.mw.sharedCSS + self._css
max=len(self._decks)-1
buf += "<tr><th></th><th align=right>%s</th>" % _("Due")
buf += "<th align=right>%s</th><th></th></tr>" % _("New")

View file

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html
import sys, os, re
import sys, os, re, traceback
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from aqt.utils import showInfo, showWarning, openFolder