[PATCH 2/2] Fix saving host preferences

2016-05-27 Thread Arno Moeller
From: Arno Well, this one was fun. Took me a while to figure out that saving the preferences for a host also destroys the view... When passing an URL via command line, somehow saveHostPrefs() is being called, destroying the just created view, leaving the baffled user with only a new connection v

[PATCH 1/2] Fix URL parsing

2016-05-27 Thread Arno Moeller
From: Arno As it seems, QUrl does not know about rdp://, so url.scheme() is empty. The old code tried to "fix" it by replacing the scheme with vnc://, because, as the comment stated, it was default in kde3. Fix the "fix" by explicitly looking for supported schemes (vnc://, rdp:// and nx://, are

[PATCH 0/2] KRDC: Fix command line argument handling

2016-05-27 Thread Arno Moeller
From: Arno Two small fixes for KRDC. The first patch fixes parsing Url parsing from the command line. When passing rdp://, url.scheme() is empty, so krdc tried to "fix" it by replacing the scheme with vnc:// Once I had that working, I found out that the newly created view was immediately destro