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):
if self.collection():
self.window().maybeReset()

View File

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

View File

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

View File

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

View File

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