Project

General

Profile

Feature #675927

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

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

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

0%


qt_ai_player_cmds.patch View (4.14 KB) ᳇ Ϻ⚸Яℨ⚔ ᳇, 2017-06-11 08:15 PM

qt_ai_player_cmds-f30_31.patch View (4.12 KB) ᳇ Ϻ⚸Яℨ⚔ ᳇, 2017-06-11 08:15 PM

qt_ai_player_cmds-f30_31.patch View (4.12 KB) ᳇ Ϻ⚸Яℨ⚔ ᳇, 2017-06-11 08:17 PM

0001-Compile-fix-after-hrm-feature-675927.patch View - S2_6, S3_0, master: quick compile fix (1.11 KB) Jacob Nevins, 2017-07-05 08:47 AM

qt_fix_compile-fix-after-hrm-feature-675927.patch View (823 Bytes) ᳇ Ϻ⚸Яℨ⚔ ᳇, 2017-07-05 01:56 PM

History

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

  • Status changed from Resolved to Closed

#3 Updated by Jacob Nevins 3 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 ᳇ Ϻ⚸Яℨ⚔ ᳇ 3 months ago

Ok, i just replaced 0 with nullptr.

#5 Updated by Jacob Nevins 3 months ago

Thanks. Committing immediately as emergency bugfix.

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

  • Status changed from Resolved to Closed

Also available in: Atom PDF