Diffstat (limited to 'noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp b/noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp index 3fe2ea6..be720b8 100644 --- a/noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp +++ b/noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp | |||
@@ -51,24 +51,26 @@ RfcommAssignDialog::~RfcommAssignDialog() | |||
51 | void RfcommAssignDialog::newDevice( const QString & mac ) | 51 | void RfcommAssignDialog::newDevice( const QString & mac ) |
52 | { | 52 | { |
53 | 53 | ||
54 | for ( int i = 0 ; i < m_range; i++ ) | 54 | for ( int i = 0 ; i < m_range; i++ ) |
55 | { | 55 | { |
56 | 56 | ||
57 | QMap<QString, RfCommConfObject*>::Iterator it; | 57 | QMap<QString, RfCommConfObject*>::Iterator it; |
58 | it = confHandler->foundEntries().find( QString("%1").arg( i ) ); | 58 | it = confHandler->foundEntries().find( QString("%1").arg( i ) ); |
59 | // make sure that rfcommX is not assigned yet | 59 | // make sure that rfcommX is not assigned yet |
60 | if ( it == confHandler->foundEntries().end() ) | 60 | if ( it == confHandler->foundEntries().end() ) |
61 | { | 61 | { |
62 | QDialog dialog( this, "newdevice", true, WStyle_ContextHelp ); | 62 | QDialog dialog( this, "newdevice", true, WStyle_ContextHelp ); |
63 | dialog.setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, | ||
64 | (QSizePolicy::SizeType)7, sizePolicy().hasHeightForWidth())); | ||
63 | 65 | ||
64 | RfcommDialogItem *newDev = new RfcommDialogItem( &dialog ); | 66 | RfcommDialogItem *newDev = new RfcommDialogItem( &dialog ); |
65 | newDev->setIdent( i ); | 67 | newDev->setIdent( i ); |
66 | newDev->setMac( mac ); | 68 | newDev->setMac( mac ); |
67 | 69 | ||
68 | if ( QPEApplication::execDialog( &dialog ) == QDialog::Accepted ) | 70 | if ( QPEApplication::execDialog( &dialog ) == QDialog::Accepted ) |
69 | { | 71 | { |
70 | RfcommDialogItem *rfcomm = new RfcommDialogItem( m_box ); | 72 | RfcommDialogItem *rfcomm = new RfcommDialogItem( m_box ); |
71 | m_itemList.insert( i , rfcomm ); | 73 | m_itemList.insert( i , rfcomm ); |
72 | rfcomm->setIdent( i ); | 74 | rfcomm->setIdent( i ); |
73 | rfcomm->setMac( mac ); | 75 | rfcomm->setMac( mac ); |
74 | rfcomm->setChannel( newDev->channel() ); | 76 | rfcomm->setChannel( newDev->channel() ); |