Project

General

Profile

Feature #675927

Qt client - added button with menu to change ai mode and ai level in player dialog

Added by ᳇ Ϻ⚸Яℨ⚔ ᳇ 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
gui-qt
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

qt_ai_player_cmds.patch (4.14 KB) qt_ai_player_cmds.patch ᳇ Ϻ⚸Яℨ⚔ ᳇, 2017-06-11 08:15 PM
qt_ai_player_cmds-f30_31.patch (4.12 KB) qt_ai_player_cmds-f30_31.patch ᳇ Ϻ⚸Яℨ⚔ ᳇, 2017-06-11 08:15 PM
qt_ai_player_cmds-f30_31.patch (4.12 KB) qt_ai_player_cmds-f30_31.patch ᳇ Ϻ⚸Яℨ⚔ ᳇, 2017-06-11 08:17 PM
0001-Compile-fix-after-hrm-feature-675927.patch (1.11 KB) 0001-Compile-fix-after-hrm-feature-675927.patch S2_6, S3_0, master: quick compile fix Jacob Nevins, 2017-07-05 08:47 AM
qt_fix_compile-fix-after-hrm-feature-675927.patch (823 Bytes) qt_fix_compile-fix-after-hrm-feature-675927.patch ᳇ Ϻ⚸Яℨ⚔ ᳇, 2017-07-05 01:56 PM

History

#2 Updated by ᳇ Ϻ⚸Яℨ⚔ ᳇ 5 months ago

  • Status changed from Resolved to Closed

#3 Updated by Jacob Nevins 5 months ago

This patch caused a compilation failure on my system (Xubuntu 14.04, Qt 5.2, GCC 4.8).

.../git26/client/gui-qt/plrdlg.cpp: In member function 'void plr_report::toggle_ai_mode()':
.../git26/client/gui-qt/plrdlg.cpp:721:56: error: no matching function for call to 'QAction::QAction(char*)'
   toggle_ai_act = new QAction(_("Toggle AI Mode"));
                                                        ^

The attached fixes compilation; I don't know if it's the best fix.

#4 Updated by ᳇ Ϻ⚸Яℨ⚔ ᳇ 5 months ago

Ok, i just replaced 0 with nullptr.

#5 Updated by Jacob Nevins 5 months ago

Thanks. Committing immediately as emergency bugfix.

#6 Updated by ᳇ Ϻ⚸Яℨ⚔ ᳇ 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF