Kaydet (Commit) a482d328 authored tarafından Pranav Kant's avatar Pranav Kant Kaydeden (comit) Miklos Vajna

gtktiledviewer: Don't continue on widget init failure

Change-Id: I5916357903fad5878d29bc31f21af45816a45ec5
üst e2c73bf7
......@@ -520,8 +520,8 @@ int main( int argc, char* argv[] )
// Docview
pDocView = lok_doc_view_new (argv[1], NULL, NULL);
if (pDocView == NULL)
g_error ("Error while creating LOKDocView widget");
g_assert_nonnull(pDocView);
g_signal_connect(pDocView, "edit-changed", G_CALLBACK(signalEdit), NULL);
g_signal_connect(pDocView, "command-changed", G_CALLBACK(signalCommand), NULL);
g_signal_connect(pDocView, "search-not-found", G_CALLBACK(signalSearch), NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment