fixes
This commit is contained in:
parent
863e36d4a7
commit
27dc1f3fdb
@ -66,6 +66,7 @@ class Anki:
|
||||
|
||||
|
||||
def stopEditing(self):
|
||||
if self.collection():
|
||||
self.window().maybeReset()
|
||||
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user