Skip to content

Commit

Permalink
Fix cast error
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDTill committed Sep 3, 2023
1 parent d0df60b commit 7f81620
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/projectbrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ void ProjectBrowser::saveModel(Forscape::Typeset::Model* saved_model, const std:
if(create_new_file || rename_file){
saved_model->path = std_path;
FileEntry* item = debug_cast<FileEntry*>(entries[std_path]);
item->setText(0, toQString(std_path.filename()));
item->setData(0, Qt::UserRole, reinterpret_cast<size_t>(saved_model));
item->setModel(*saved_model);
auto result = entries.insert({std_path, item});
if(!result.second){
//Saving over existing project file
Expand Down

0 comments on commit 7f81620

Please sign in to comment.