applied patch for #1398

git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6343 17fca916-40b9-46aa-a4ea-0a15b648b75c
fix #1391

git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6344 17fca916-40b9-46aa-a4ea-0a15b648b75c