~ubuntu-branches/ubuntu/utopic/ubuntuone-control-panel/utopic

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/uniqueapp/linux.py

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2012-05-22 14:31:30 UTC
  • mfrom: (1.1.31)
  • Revision ID: package-import@ubuntu.com-20120522143130-u9c5emf2r39mplyh
Tags: 3.0.1-0ubuntu1.1
* New upstream release.
  - Restore window properly when minimized to tray. (LP: #865688)
  - Make CalculateSize use bytes in os.walk. (LP: #959447)
  - Avoid obstruction of spin button hilights. (LP: #966283)
  - Fix external link buttons for RTL locales. (LP: #983665)
  - Avoid launching duplicate instances. (LP: #987909)
  - File sync status reports disabled while syncdaemon is IDLE. (LP: #995146)
* debian/watch:
  - Update the watch file to use the stable-3-0 series

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
#
3
 
# Copyright 2011 Canonical Ltd.
4
 
#
5
 
# This program is free software: you can redistribute it and/or modify it
6
 
# under the terms of the GNU General Public License version 3, as published
7
 
# by the Free Software Foundation.
8
 
#
9
 
# This program is distributed in the hope that it will be useful, but
10
 
# WITHOUT ANY WARRANTY; without even the implied warranties of
11
 
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
 
# PURPOSE.  See the GNU General Public License for more details.
13
 
#
14
 
# You should have received a copy of the GNU General Public License along
15
 
# with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 
 
17
 
"""A QApplication that starts a single instance."""
18
 
 
19
 
from PyQt4 import QtGui, QtCore
20
 
 
21
 
 
22
 
class UniqueApplication(QtGui.QApplication):
23
 
 
24
 
    """A dummy UniqueApplication class."""
25
 
 
26
 
    new_instance = QtCore.pyqtSignal()
27
 
 
28
 
    def __init__(self, argv, key):
29
 
        super(UniqueApplication, self).__init__(argv)