D25981: Clean up the chat dialog code a bit, set the keyboard focus on the chat message field

Yuri Chornoivan <[email protected]>
Newsgroups gmane.comp.kde.devel.games
Message-ID <[email protected]>
yurchor created this revision.
yurchor added a reviewer: KDE Games.
Herald added a subscriber: kde-games-devel.
yurchor requested review of this revision.

REVISION SUMMARY
  Remove unnecessary repetition of code and focusing of "Configure..." button by default that leads to unexpected opening of the chat configuration dialog or closing the chat dialog when you press Enter in the message field.

TEST PLAN
  Open the "Game -> Network Chat..." dialog, add some message and press Enter. Chat does not work as before (I cannot figure up why) but at least it does not open the configuration dialog and does not close either.

REPOSITORY
  R395 KFourInLine

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D25981

AFFECTED FILES
  src/chatdlg.cpp

To: yurchor, #kde_games
Cc: kde-games-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.