Warnings opening Inkscape with cleared dialog-state

Summary:

Opening Inkscape after deleting dialog-state*.ini/resetting preferences prints errors in terminal. I have also noticed prefernces/document properties dialog being docked at times (also mentioned by PBS and @ mkov in chat) - but couldn't find an easy way to replicate it.

Steps to reproduce:

  • Delete dialog-state-ex.ini
  • open Inkscape

What happened?

Error in terminal

void Inkscape::UI::Dialog::DialogManager::restore_dialogs_state(Inkscape::UI::Dialog::DialogContainer*, bool): dialogs state not loaded - Key file does not have key “ColumnWidth” in group “Window0Column0”

What should have happened?

No error. This also seems to prevent reading 1.2.x dialog states (or any dialog state touched by 1.2.x). (Perhaps in that case minimum width should be automatically given?)

Version info

Inkscape 1.3-dev (1d5f25f, 2022-09-26)

    GLib version:     2.64.6
    GTK version:      3.24.20
    glibmm version:   2.64.2
    gtkmm version:    3.24.2
    libxml2 version:  2.9.10
    libxslt version:  1.1.34
    Cairo version:    1.17.6
    Pango version:    1.44.7
    HarfBuzz version: 2.6.4

    OS version:       Ubuntu 22.04.1 LTS
Edited by KrIr17