Diffstat (limited to 'noncore/net/opietooth/manager/dundialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/dundialog.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/dundialog.cpp b/noncore/net/opietooth/manager/dundialog.cpp index 7aac271..c6d8619 100644 --- a/noncore/net/opietooth/manager/dundialog.cpp +++ b/noncore/net/opietooth/manager/dundialog.cpp | |||
@@ -54,9 +54,13 @@ DunDialog::DunDialog( const QString& device, int port, QWidget* parent, | |||
54 | doEncryption = new QCheckBox(this, "encrypt"); | 54 | doEncryption = new QCheckBox(this, "encrypt"); |
55 | doEncryption->setText( tr( "encrypt" ) ); | 55 | doEncryption->setText( tr( "encrypt" ) ); |
56 | 56 | ||
57 | persist = new QCheckBox(this, "persist"); | ||
58 | persist->setText( tr( "persist" ) ); | ||
59 | |||
57 | layout->addWidget(info); | 60 | layout->addWidget(info); |
58 | layout->addWidget(cmdLine); | 61 | layout->addWidget(cmdLine); |
59 | layout->addWidget(doEncryption); | 62 | layout->addWidget(doEncryption); |
63 | layout->addWidget(persist); | ||
60 | layout->addWidget(outPut); | 64 | layout->addWidget(outPut); |
61 | layout->addWidget(connectButton); | 65 | layout->addWidget(connectButton); |
62 | 66 | ||
@@ -68,6 +72,8 @@ DunDialog::~DunDialog() { | |||
68 | 72 | ||
69 | void DunDialog::connectToDevice() { | 73 | void DunDialog::connectToDevice() { |
70 | bool doEnc = doEncryption->isChecked(); | 74 | bool doEnc = doEncryption->isChecked(); |
75 | bool doPersist = persist->isChecked(); | ||
76 | |||
71 | if (cmdLine->text() == "") | 77 | if (cmdLine->text() == "") |
72 | return; | 78 | return; |
73 | if (m_dunConnect) { | 79 | if (m_dunConnect) { |
@@ -84,6 +90,8 @@ void DunDialog::connectToDevice() { | |||
84 | << tr("--nodetach"); | 90 | << tr("--nodetach"); |
85 | if (doEnc) | 91 | if (doEnc) |
86 | *m_dunConnect << tr("--encrypt"); | 92 | *m_dunConnect << tr("--encrypt"); |
93 | if (doPersist) | ||
94 | *m_dunConnect << tr("--persist"); | ||
87 | *m_dunConnect << tr("call") | 95 | *m_dunConnect << tr("call") |
88 | << cmdLine->text(); | 96 | << cmdLine->text(); |
89 | if (!m_dunConnect->start(OProcess::NotifyOnExit, | 97 | if (!m_dunConnect->start(OProcess::NotifyOnExit, |