Kaydet (Commit) 1ff566f4 authored tarafından Michael Meeks's avatar Michael Meeks Kaydeden (comit) Jan Holesovsky

fdo#58699 - sdremote - fix it so it closes even with no bluetooth.

Change-Id: I09588f4e4b22466843f855d99c06f616c04518ac
Signed-off-by: 's avatarJan Holesovsky <kendy@suse.cz>
üst 478508a2
......@@ -27,9 +27,10 @@ RemoteDialog::RemoteDialog( Window *pWindow ) :
{
(void) mPreviouslyDiscoverable; // avoid warnings about unused member
#ifdef ENABLE_SDREMOTE
FreeResource();
#ifdef ENABLE_SDREMOTE
#ifdef ENABLE_SDREMOTE_BLUETOOTH
mPreviouslyDiscoverable = RemoteServer::isBluetoothDiscoverable();
if ( !mPreviouslyDiscoverable )
......@@ -45,11 +46,11 @@ RemoteDialog::RemoteDialog( Window *pWindow ) :
{
mClientBox.addEntry( *aIt );
}
#endif
mButtonConnect.SetClickHdl( LINK( this, RemoteDialog, HandleConnectButton ) );
SetCloseHdl( LINK( this, RemoteDialog, CloseHdl ) );
mButtonCancel.SetClickHdl( LINK( this, RemoteDialog, CloseHdl ) );
#endif
}
RemoteDialog::~RemoteDialog()
......@@ -84,8 +85,8 @@ IMPL_LINK_NOARG( RemoteDialog, CloseHdl )
{
RemoteServer::setBluetoothDiscoverable( false );
}
Close();
#endif
Close();
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment