Changeset 9367


Ignore:
Timestamp:
Oct 22, 2009, 3:01:38 AM (13 years ago)
Author:
charles
Message:

(1.7x) backports for 1.76: r9178 #2417: Qt client closes, rather than closing to the system tray, when user clicks X

Location:
branches/1.7x
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/NEWS

    r9366 r9367  
    1 === Transmission 1.76 (2009/09/13) ===
     1=== Transmission 1.76 (2009/xx/yy) ===
    22==== All Platforms ====
    33  * Fix possible dataloss when trying to move torrents to where they already are
    44  * Fix manpage errors
    55  * Fix minor protocol error that didn't send a port message to some peers
    6   * Use automake's "quieter builds" rule when available
    76==== Daemon ====
    87  * Fix possible dataloss when using "transmission-remote --find"
     
    1716==== Qt ====
    1817  * Fix crash when removing expired torrents from the display
     18  * Fix client from closing, rather than closing to the system tray, when clicking X
    1919
    2020=== Transmission 1.75 (2009/09/13) ===
  • branches/1.7x/qt/mainwin.cc

    r9363 r9367  
    1515
    1616#include <QCheckBox>
     17#include <QCloseEvent>
    1718#include <QDesktopServices>
    1819#include <QFileDialog>
     
    287288
    288289void
     290TrMainWindow :: closeEvent( QCloseEvent * event )
     291{
     292    // if they're using a tray icon, close to the tray
     293    // instead of exiting
     294    if( !myPrefs.getBool( Prefs :: SHOW_TRAY_ICON ) )
     295        event->accept( );
     296    else {
     297        toggleWindows( false );
     298        event->ignore( );
     299    }
     300}
     301
     302/****
     303*****
     304****/
     305
     306void
    289307TrMainWindow :: onSessionSourceChanged( )
    290308{
  • branches/1.7x/qt/mainwin.h

    r8890 r9367  
    5050{
    5151        Q_OBJECT
     52
     53    private:
     54        virtual void closeEvent( QCloseEvent * event );
    5255
    5356    private:
Note: See TracChangeset for help on using the changeset viewer.