Skip to content

Commit

Permalink
Traktor: Fixed incorrect icon on tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Apr 29, 2024
1 parent b0da4c2 commit 1d0d6e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 69 deletions.
5 changes: 2 additions & 3 deletions code/Editor/App/EditorForm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
#include "Editor/App/DefaultObjectEditorFactory.h"
#include "Editor/App/Document.h"
#include "Editor/App/EditorForm.h"
#include "Editor/App/EditorPageForm.h"
#include "Editor/App/EditorPageSite.h"
#include "Editor/App/EditorPluginSite.h"
#include "Editor/App/LogView.h"
Expand Down Expand Up @@ -1143,13 +1142,13 @@ bool EditorForm::openEditor(db::Instance* instance)

const auto& icons = iconsGroup->getValues();

int32_t iconIndex = 2;
int32_t iconIndex = 0;
for (auto i = icons.begin(); i != icons.end(); ++i)
{
const TypeInfo* iconType = TypeInfo::find(i->first.c_str());
if (iconType && is_type_of(*iconType, type_of(object)))
{
iconIndex = PropertyInteger::get(i->second);
iconIndex = PropertyInteger::get(i->second) - 2;
break;
}
}
Expand Down
33 changes: 0 additions & 33 deletions code/Editor/App/EditorPageForm.cpp

This file was deleted.

33 changes: 0 additions & 33 deletions code/Editor/App/EditorPageForm.h

This file was deleted.

0 comments on commit 1d0d6e8

Please sign in to comment.