Skip to content

Commit

Permalink
Fix crash caused by two objects having the same ID (#285)
Browse files Browse the repository at this point in the history
The main_window.ui file lists two objects with the same ID, preventing
the app from starting with:

(io.github.lainsce.Notejot:644523): Gtk-CRITICAL **: 15:15:03.493: Error building template class 'NotejotMainWindow' for an instance of type 'NotejotMainWindow': .:0:0 Duplicate object ID 'placeholder' (previously on line 0)

None of these objects is referenced in the MainWindow.vala file,
therefore dropping the IDs entirely fixes the issue.

This was initially reported at https://bugzilla.redhat.com/2002210
  • Loading branch information
felipeborges authored Sep 8, 2021
1 parent 3f1ff1d commit a4b6539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/ui/main_window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<class name="notejot-view"/>
</style>
<child type="placeholder">
<object class="AdwStatusPage" id="placeholder">
<object class="AdwStatusPage">
<property name="valign">center</property>
<property name="hexpand">0</property>
<property name="vexpand">1</property>
Expand Down Expand Up @@ -136,7 +136,7 @@
<class name="notejot-view"/>
</style>
<child type="placeholder">
<object class="AdwStatusPage" id="placeholder">
<object class="AdwStatusPage">
<property name="valign">center</property>
<property name="vexpand">1</property>
<property name="icon-name">user-trash-symbolic</property>
Expand Down

0 comments on commit a4b6539

Please sign in to comment.