Skip to content

Commit a4b6539

Browse files
authored
Fix crash caused by two objects having the same ID (#285)
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
1 parent 3f1ff1d commit a4b6539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/ui/main_window.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<class name="notejot-view"/>
107107
</style>
108108
<child type="placeholder">
109-
<object class="AdwStatusPage" id="placeholder">
109+
<object class="AdwStatusPage">
110110
<property name="valign">center</property>
111111
<property name="hexpand">0</property>
112112
<property name="vexpand">1</property>
@@ -136,7 +136,7 @@
136136
<class name="notejot-view"/>
137137
</style>
138138
<child type="placeholder">
139-
<object class="AdwStatusPage" id="placeholder">
139+
<object class="AdwStatusPage">
140140
<property name="valign">center</property>
141141
<property name="vexpand">1</property>
142142
<property name="icon-name">user-trash-symbolic</property>

0 commit comments

Comments
 (0)