[wesnoth-commits] [wesnoth/wesnoth] 751043: gui2: Fix cursor setter going out of scope as soon...

Iris Morelle noreply at github.com
Thu Jan 9 04:16:08 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 751043a692920a2e95a79a3a7c488eeda2b16ede
      https://github.com/wesnoth/wesnoth/commit/751043a692920a2e95a79a3a7c488eeda2b16ede
  Author: Iris Morelle <shadowm at wesnoth.org>
  Date:   2020-01-09 (Thu, 09 Jan 2020)

  Changed paths:
    M src/gui/dialogs/modal_dialog.cpp

  Log Message:
  -----------
  gui2: Fix cursor setter going out of scope as soon as it's created

Because I'm unbelievably smart, I forgot to name the cursor::setter
variable, so it becomes a temporary that exists for exactly one
statement before the dialog's window is displayed. Addressed this by
giving it a name.

Fixes #4618.





More information about the Commits mailing list