File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
tests/unit_tests/testcases/app Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -211,17 +211,13 @@ bool ConnectionWindow::isAdvancedSettingsValid()
211211 markFieldValid (ui.namespaceSeparator );
212212 markFieldValid (ui.keysPattern );
213213
214- bool isValid = !ui.namespaceSeparator ->text ().isEmpty ()
215- && !ui.keysPattern ->text ().isEmpty ()
214+ bool isValid = !ui.keysPattern ->text ().isEmpty ()
216215 && ui.connectionTimeout ->value () >= 10
217216 && ui.executionTimeout ->value () >= 10 ;
218217
219218
220219 if (isValid)
221- return true ;
222-
223- if (ui.namespaceSeparator ->text ().isEmpty ())
224- markFieldInvalid (ui.namespaceSeparator );
220+ return true ;
225221
226222 if (ui.keysPattern ->text ().isEmpty ())
227223 markFieldInvalid (ui.keysPattern );
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ void TestDialogs::testConnectionDialogValidation()
8282 QCOMPARE (window.isAdvancedSettingsValid (), true );
8383
8484 window.ui .namespaceSeparator ->setText (" " );
85- QCOMPARE (window.isAdvancedSettingsValid (), false );
85+ QCOMPARE (window.isAdvancedSettingsValid (), true );
8686
8787 window.ui .namespaceSeparator ->setText (" :" );
8888 window.ui .keysPattern ->setText (" " );
You can’t perform that action at this time.
0 commit comments