author | llornkcor <llornkcor> | 2002-11-02 22:29:09 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-02 22:29:09 (UTC) |
commit | efb3cb40de57d53de1eb22662261e58333a3a39d (patch) (side-by-side diff) | |
tree | 8f07bce4fc4040444d88cc006dd7db60c33adb4d | |
parent | 2dc81c48428222533e5479947d9ad318e464bafa (diff) | |
download | opie-efb3cb40de57d53de1eb22662261e58333a3a39d.zip opie-efb3cb40de57d53de1eb22662261e58333a3a39d.tar.gz opie-efb3cb40de57d53de1eb22662261e58333a3a39d.tar.bz2 |
make deny the default button for ftp/sync prompt
-rw-r--r-- | core/launcher/transferserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/transferserver.cpp b/core/launcher/transferserver.cpp index dea140d..aaa4425 100644 --- a/core/launcher/transferserver.cpp +++ b/core/launcher/transferserver.cpp @@ -209,49 +209,49 @@ bool SyncAuthentication::checkPassword( const QString& password ) // Second, check sync password... QString pass = password.left(6); /* old QtopiaDesktops are sending * rootme newer versions got a Qtopia * prefixed. Qtopia prefix will suceed * until the sync software syncs up * FIXME */ if ( pass == "rootme" || pass == "Qtopia") { QString cpassword = QString::fromLocal8Bit( crypt( password.mid(8).local8Bit(), "qp" ) ); Config cfg("Security"); cfg.setGroup("Sync"); QString pwds = cfg.readEntry("Passwords"); if ( QStringList::split(QChar(' '),pwds).contains(cpassword) ) return TRUE; // Unrecognized system. Be careful... if ( (denials > 2 && now < lastdenial+600) || QMessageBox::warning(0,tr("Sync Connection"), tr("<p>An unrecognized system is requesting access to this device." "<p>If you have just initiated a Sync for the first time, this is normal."), - tr("Allow"),tr("Deny"))==1 ) + tr("Allow"),tr("Deny"), 0, 1, 1 ) ==1 ) { denials++; lastdenial=now; return FALSE; } else { denials=0; cfg.writeEntry("Passwords",pwds+" "+cpassword); return TRUE; } } return FALSE; } ServerPI::ServerPI( int socket, QObject *parent , const char* name ) : QSocket( parent, name ) , dtp( 0 ), serversocket( 0 ), waitsocket( 0 ) { state = Connected; setSocket( socket ); peerport = peerPort(); peeraddress = peerAddress(); |