1
This commit is contained in:
Alex Yatskov 2012-12-25 08:39:21 -08:00
parent 863e36d4a7
commit 27dc1f3fdb
5 changed files with 6 additions and 6 deletions

View File

@ -66,6 +66,7 @@ class Anki:
def stopEditing(self): def stopEditing(self):
if self.collection():
self.window().maybeReset() self.window().maybeReset()

View File

@ -293,7 +293,7 @@ class MainWindowReader(QtGui.QMainWindow):
def onUpdaterSearchResult(self, result): def onUpdaterSearchResult(self, result):
if result is not None and result > constants['version']: if result and unicode(result) > constants['version']:
QtGui.QMessageBox.information( QtGui.QMessageBox.information(
self, self,
'Yomichan', 'Yomichan',

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>600</width> <width>700</width>
<height>400</height> <height>400</height>
</rect> </rect>
</property> </property>
@ -53,7 +53,7 @@
<item> <item>
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>(c) 2011 by Alex Yatskov</string> <string>(c) 2012 by Alex Yatskov</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -16,7 +16,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import urllib2 import urllib2
from xml.dom import minidom from xml.dom import minidom
from PyQt4 import QtCore from PyQt4 import QtCore

View File

@ -77,7 +77,7 @@ class YomichanStandalone(Yomichan):
self.window = MainWindowReader( self.window = MainWindowReader(
None, None,
self.preferences, self.preferences,
self.languages, self.language,
filename=sys.argv[1] if len(sys.argv) >= 2 else None filename=sys.argv[1] if len(sys.argv) >= 2 else None
) )