Handle comments consistently in desktop socket protocol settings
This commit is contained in:
1 parent
7bcdccc4d6
commit
c26b626c35
3 files changed
+11
-5
No files matched your search
@@ -77,6 +77,10 @@ private slots:
|
||||
}
|
||||
QVERIFY(config_update_option(path, "global", "auto_sockets", "no"));
|
||||
page.loadFromConfig(path); QVERIFY(!protocols->isEnabled());
|
||||
QVERIFY(config_update_option(path, "global", "auto_socket_protocols", "TCP # comment"));
|
||||
QVERIFY(config.load()); QVERIFY(!config.hasErrors());
|
||||
QCOMPARE(config.autoSocketProtocols(), QString("tcp"));
|
||||
page.loadFromConfig(path); QCOMPARE(protocols->currentData().toString(), QString("tcp"));
|
||||
QVERIFY(config_update_option(path, "global", "auto_socket_protocols", "invalid"));
|
||||
QVERIFY(config.load()); QVERIFY(config.hasErrors());
|
||||
QFile file(path); QVERIFY(file.open(QIODevice::WriteOnly | QIODevice::Truncate));
|
||||
|
||||
Reference in new issue
Block a user