~mikemc/ubuntuone-control-panel/fix-1248326

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/share_links.py

  • Committer: Tarmac
  • Author(s): mike.mccracken@canonical.com
  • Date: 2013-03-12 20:34:36 UTC
  • mfrom: (398.2.5 fix-close-popup)
  • Revision ID: tarmac-20130312203436-wk0f527afh1jr9gp
- Work around Qt issue where search files popup frame was not hidden after switching to another tab. (LP: #1152388)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 *-*
2
2
 
3
 
# Copyright 2012 Canonical Ltd.
 
3
# Copyright 2012-2013 Canonical Ltd.
4
4
#
5
5
# This program is free software: you can redistribute it and/or modify it
6
6
# under the terms of the GNU General Public License version 3, as published
107
107
        self.get_public_files()
108
108
        self._enhanced_line.btn_operation.hide()
109
109
 
 
110
    def handle_current_tab_changed(self, index):
 
111
        """Workaround for bug LP: 1152388"""
 
112
        self.ui.line_search.clearFocus()
 
113
        self.ui.line_search.popup.hide()
 
114
 
110
115
    @inlineCallbacks
111
116
    def share_file(self, file_path):
112
117
        """Clean the previous file share details and publish file_path."""