mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Fix conflict between two classes named app::Item (in brush_popup.cpp and data_recovery_view.cpp)
This conflict was generating a crash when the "Recover Lost Sprites" button was pressed.
This commit is contained in:
parent
cb5fd3963f
commit
9dfd5ae0d3
@ -38,6 +38,8 @@ using namespace app::skin;
|
||||
using namespace doc;
|
||||
using namespace ui;
|
||||
|
||||
namespace {
|
||||
|
||||
class Item : public ButtonSet::Item {
|
||||
public:
|
||||
Item(BrushPopup* popup, BrushPopupDelegate* delegate, const BrushRef& brush, int slot = -1)
|
||||
@ -96,6 +98,8 @@ private:
|
||||
int m_slot;
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
static BrushRef defBrushes[3];
|
||||
|
||||
BrushPopup::BrushPopup(BrushPopupDelegate* delegate)
|
||||
|
@ -34,6 +34,8 @@ namespace app {
|
||||
using namespace ui;
|
||||
using namespace app::skin;
|
||||
|
||||
namespace {
|
||||
|
||||
class Item : public ListItem {
|
||||
public:
|
||||
Item(crash::Session* session, crash::Session::Backup* backup)
|
||||
@ -128,6 +130,8 @@ private:
|
||||
ui::Button m_deleteButton;
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
DataRecoveryView::DataRecoveryView(crash::DataRecovery* dataRecovery)
|
||||
: Box(JI_VERTICAL)
|
||||
, m_dataRecovery(dataRecovery)
|
||||
|
Loading…
x
Reference in New Issue
Block a user