X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdialogs%2Fconnect.cpp;h=9cd712508d463e0711ede42b79d399c219a1e956;hb=f44133787621a589cfd65b8726a2433df01e2c6c;hp=b7efe4f3442a875bd40dc37c2ea01d56852ff2d2;hpb=27e8df221014d1a8c7769866773e8dbb0486eea8;p=pulseview.git diff --git a/pv/dialogs/connect.cpp b/pv/dialogs/connect.cpp index b7efe4f..9cd7125 100644 --- a/pv/dialogs/connect.cpp +++ b/pv/dialogs/connect.cpp @@ -31,7 +31,8 @@ extern "C" { #include } -using namespace std; +using std::list; +using std::string; extern sr_context *sr_ctx; @@ -176,7 +177,7 @@ void Connect::scan_pressed() } _device_list.setCurrentRow(0); - _button_box.button(QDialogButtonBox::Ok)->setDisabled(false); + _button_box.button(QDialogButtonBox::Ok)->setDisabled(_device_list.count() == 0); } void Connect::device_selected(int index)