~roeldeconinck/mnemosyne-proj/import

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/pyqt_ui/sync_dlg.py

  • Committer: Peter Bienstman
  • Date: 2011-08-26 17:32:52 UTC
  • Revision ID: peter.bienstman@ugent.be-20110826173252-2t6lutikbqzn2pmt
-when detecting missing media, only warn once, and give all the affected cards a 
 'MISSING_MEDIA' tag, so that you can find them back later. 
 (from a bug report by Dandelo)
-dialogs now have max/min button under windows
-the main dialogs not only save their size, but also their position

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        SyncDialog.__init__(self, component_manager)
88
88
        QtGui.QDialog.__init__(self, self.main_widget())
89
89
        self.setupUi(self)
 
90
        self.setWindowFlags(self.windowFlags() \
 
91
            | QtCore.Qt.WindowMinMaxButtonsHint)
 
92
        self.setWindowFlags(self.windowFlags() \
 
93
            & ~ QtCore.Qt.WindowContextHelpButtonHint)       
90
94
        if not self.config()["sync_help_shown"]:
91
95
            self.main_widget().show_information(\
92
96
               _("Here, you can sync with a different desktop or a webserver. \nTo sync with a mobile device, first enable a sync server on this computer in the configuration dialog, and then start the sync from the mobile device."))