~ubuntu-branches/ubuntu/lucid/lastfm/lucid

« back to all changes in this revision

Viewing changes to src/loginwidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2008-07-14 16:46:20 UTC
  • mfrom: (1.1.7 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080714164620-67hoz9fs177wpgmr
Tags: 1:1.5.1.31879.dfsg-1ubuntu1
* Merge from Debian unstable (LP: #248100), remaining changes:
  - debian/rules: add dh_icons call
  + debian/control:
    - switch iceweasel to firefox in Recommends field
    - modify debhelper version to >= 5.0.51~
    - modify Maintainer to Ubuntu MOTU Developers

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
#include "ui_dialogshell.h"
36
36
 
 
37
#ifdef Q_WS_MAC
 
38
    extern void qt_mac_secure_keyboard(bool); //qapplication_mac.cpp
 
39
#endif
 
40
 
37
41
// These are functions so that the translator will have had time to get
38
42
// initialised before tr is called.
39
43
inline static QString badUserErrorString()
91
95
}
92
96
 
93
97
 
 
98
LoginWidget::~LoginWidget()
 
99
{
 
100
#ifdef Q_WS_MAC
 
101
    //SecureInput QT bug workaround
 
102
    qt_mac_secure_keyboard( false );
 
103
#endif
 
104
}
 
105
 
 
106
 
94
107
/******************************************************************************
95
108
verify
96
109
******************************************************************************/
423
436
        break;
424
437
    }
425
438
 
426
 
    disconnect( dialogUi.okButton, SIGNAL( clicked() ), dialog, SLOT( accept() ) );
427
 
    connect( dialogUi.okButton, SIGNAL( clicked() ), this, SLOT( onDialogOk() ) );
 
439
    disconnect( dialogUi.buttonBox->button( QDialogButtonBox::Ok ), SIGNAL( clicked() ), dialog, SLOT( accept() ) );
 
440
    connect( dialogUi.buttonBox->button( QDialogButtonBox::Ok ), SIGNAL( clicked() ), this, SLOT( onDialogOk() ) );
 
441
    connect( dialogUi.buttonBox, SIGNAL( rejected() ), dialog, SLOT( reject() ) );
428
442
    connect( dialog, SIGNAL( accepted() ), this, SLOT( save() ) );
429
443
    connect( this, SIGNAL( verifySuccess() ), dialog, SLOT( accept() ) );
430
444
    //connect( this, SIGNAL( verifyFail() ), dialog, SLOT( reject() ) );