Fixes a crash in QPrinterDialog with relative filenames
commit42b5bc2e21cbed70b64fcd1f1bcf9282444206dd
authorJoão Abecasis <joao@abecasis.name>
Thu, 7 May 2009 18:53:22 +0000 (7 20:53 +0200)
committerJoão Abecasis <joao@abecasis.name>
Fri, 8 May 2009 11:28:35 +0000 (8 13:28 +0200)
treebe684bf472b4567ad02a1f1f583e70be061b5512
parent813835f67a1053561eba67bf958eb39c0f4eedfe
Fixes a crash in QPrinterDialog with relative filenames

It's better to set the sourceModel in the constructor for QFSCompletor,
as requiring that it be set separately is error prone.

Surprisingly, the printer dialog crash only appears to happen when using
relative filenames.

Task-number: 253135
Reviewed-by: alexis
src/gui/dialogs/qfiledialog.cpp
src/gui/dialogs/qfiledialog_p.h
tests/auto/qprinter/tst_qprinter.cpp