~ubuntu-branches/ubuntu/vivid/manaplus/vivid-proposed

« back to all changes in this revision

Viewing changes to src/net/ea/charserverhandler.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2015-01-19 19:32:00 UTC
  • mfrom: (1.1.42)
  • Revision ID: package-import@ubuntu.com-20150119193200-ry89y6auftypk4gw
Tags: 1.5.1.17-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include "client.h"
26
26
 
27
 
#include "gui/dialogtype.h"
 
27
#include "enums/gui/dialogtype.h"
28
28
 
29
29
#include "gui/windows/charcreatedialog.h"
30
30
#include "gui/windows/okdialog.h"
165
165
    BLOCK_END("CharServerHandler::processCharDelete")
166
166
}
167
167
 
168
 
void CharServerHandler::processCharDeleteFailed(Net::MessageIn &msg A_UNUSED)
169
 
{
170
 
    BLOCK_START("CharServerHandler::processCharDeleteFailed")
171
 
    unlockCharSelectDialog();
172
 
    // TRANSLATORS: error message
173
 
    new OkDialog(_("Error"), _("Failed to delete character."),
174
 
        // TRANSLATORS: ok dialog button
175
 
        _("OK"),
176
 
        DialogType::ERROR,
177
 
        true, true, nullptr, 260);
178
 
    BLOCK_END("CharServerHandler::processCharDeleteFailed")
179
 
}
180
 
 
181
168
void CharServerHandler::clear()
182
169
{
183
170
    delete_all(mCharacters);