1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Fixed linux-specific crashes and glitches.

This commit is contained in:
Virgil Dupras
2011-01-23 07:09:47 -08:00
parent 6fc7e5ace1
commit 8a0d31f612
3 changed files with 9 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import logging
import os
import os.path as op
@@ -96,6 +97,9 @@ class DupeGuru(DupeGuruBase, QObject):
('actionOpenDebugLog', '', '', tr("Open Debug Log"), self.openDebugLogTriggered),
]
createActions(ACTIONS, self)
if sys.platform == 'linux2':
self.actionCheckForUpdate.setVisible(False) # This only works on Windows
def _setup_as_registered(self):
self.prefs.registration_code = self.registration_code

View File

@@ -68,6 +68,9 @@ class ResultWindow(QMainWindow):
createActions(ACTIONS, self)
self.actionDelta.setCheckable(True)
self.actionPowerMarker.setCheckable(True)
if sys.platform not in {'darwin', 'linux2'}:
self.actionHardlinkMarked.setVisible(False)
def _setupMenu(self):
self.menubar = QMenuBar(self)
@@ -191,12 +194,6 @@ class ResultWindow(QMainWindow):
self.setWindowState(self.windowState() | Qt.WindowMaximized)
if self.app.prefs.resultWindowRect is not None and not self.app.prefs.resultWindowIsMaximized:
self.setGeometry(self.app.prefs.resultWindowRect)
# Platform-specific setup
if sys.platform == 'linux2':
self.actionCheckForUpdate.setVisible(False) # This only works on Windows
if sys.platform not in {'darwin', 'linux2'}:
self.actionHardlinkMarked.setVisible(False)
#--- Private
def _load_columns(self):