fix resurrection bug

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301326 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Chat: fix a regression from r1300318

chatting from a running game opened a new chat window for every message

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301435 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
table list: never enable start button for suspended games

they automatically start when all players took a seat

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301436 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
table list: fix positioning after join/leave suspended table

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301437 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Server: fix table list

if a suspended table is first activated because a player takes a seat
and then deactivated again because the player leaves the table, that
table existed on the server as active table and as suspended table.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301438 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
if we lose connection to server, close all windows related to server

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301439 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
regularly ping the server

otherwise it might take some time until we notice the server has gone:
we might just wait forever for another player to make his move

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301440 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
SVN_SILENT made messages (.desktop file)

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301581 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
if an action dialog is open when starting demomode, select legal action

Reproduce this bug by first configuring "Show only possible actions"
to No. Then focus on an illegal action and start demo mode. The dialog
never disappears until you leave demo mode and continue manually

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301754 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Saveguard against deferencing None

this would happen if two players simultaneously want to abort the game.
The second player triggers the bug.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301755 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Query: converting QVariant to python values: accept QVariant.Invalid

and convert it to None. Bug reported by mail by Xavier Besnard (french
translator), but I cannot reproduce it.

Local Game: Query: variant type None not implemented for field max(id)

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301756 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Asking for game start: If ping runs concurrently, twisted-banana fails

twisted-banana will say
   twisted.spread.pb.ProtocolError: Non-list expression received.
The received expression is the last part of the previous message.
Although this looks like a Twisted bug, trying to nail it down would
probably take too much time I do not have.
Instead do not use KMessageBox but QDialog with a Deferred.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301757 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Disable pinging the server for now, this too often triggers another bug

all usage of KMessageBox should be made asynchronous with a Deferred
or replaced with QDialog like in class ReadyGameQuestion. See previous
commit.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301758 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
this continues the fix from r1301756

those two commits are needed for ubuntu quantal which is using the latest
sqlite / qtsql packages

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1301764 283d02a7-25f6-0310-bc7c-ecb5cbfe19da