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