-rw-r--r-- | noncore/net/opie-smb/qsmb.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/noncore/net/opie-smb/qsmb.cpp b/noncore/net/opie-smb/qsmb.cpp index b978b46..e2ddc7f 100644 --- a/noncore/net/opie-smb/qsmb.cpp +++ b/noncore/net/opie-smb/qsmb.cpp | |||
@@ -49,9 +49,15 @@ Qsmb::Qsmb( QWidget* parent, const char* name, WFlags fl ) | |||
49 | mountpt->insertItem("/mnt/samba1",-1); | 49 | mountpt->insertItem("/mnt/samba1",-1); |
50 | mountpt->insertItem("/mnt/samba2",-1); | 50 | mountpt->insertItem("/mnt/samba2",-1); |
51 | mountpt->insertItem("/mnt/samba3",-1); | 51 | mountpt->insertItem("/mnt/samba3",-1); |
52 | 52 | ||
53 | // TextViewOutput | 53 | setTabOrder(BtnScan, username); |
54 | setTabOrder(username, password); | ||
55 | setTabOrder(password, CBHost); | ||
56 | setTabOrder(CBHost, TextViewOutput); | ||
57 | setTabOrder(TextViewOutput, mountpt); | ||
58 | setTabOrder(mountpt, DoItBtn); | ||
59 | setTabOrder(DoItBtn, UnmountBtn); | ||
54 | 60 | ||
55 | top_element = NULL; | 61 | top_element = NULL; |
56 | scanning = false; | 62 | scanning = false; |
57 | } | 63 | } |
@@ -64,8 +70,9 @@ void Qsmb::clear() | |||
64 | { | 70 | { |
65 | if (scanning) return; | 71 | if (scanning) return; |
66 | ListViewScan->clear(); | 72 | ListViewScan->clear(); |
67 | TextViewOutput->setText(""); | 73 | TextViewOutput->setText(""); |
74 | CBHost->clear(); | ||
68 | top_element = NULL; | 75 | top_element = NULL; |
69 | } | 76 | } |
70 | 77 | ||
71 | void Qsmb::scanClicked() | 78 | void Qsmb::scanClicked() |
@@ -100,9 +107,10 @@ void* runitm(void* arg) | |||
100 | } | 107 | } |
101 | 108 | ||
102 | void Qsmb::scan() | 109 | void Qsmb::scan() |
103 | { | 110 | { |
104 | if (scanning) return; | 111 | clear(); |
112 | // if (scanning) return; | ||
105 | scanning = true; | 113 | scanning = true; |
106 | 114 | ||
107 | QString match; | 115 | QString match; |
108 | QString cmd; | 116 | QString cmd; |