Login  Register

Re: Cannot compile 1.0.2

Posted by Rallaz on Apr 26, 2012; 5:47pm
URL: https://forum.librecad.org/Cannot-compile-1-0-2-tp5667228p5668250.html

Hello Bob & Dxli,
I think it's a bug from KDE, or at least KDE+openSUSE ( I use 11.4)

LibreCAD uses a QFileDialog in "native dialog mode", using KDE+OS
the line #73 in qg_filedialog.cpp:
fileDlg->selectFilter(defFilter);
do not work and the "selected filter" are the first added in the dialog
the solution is to exchange lines #63 & #64.

Another issue with KDE+OS is dxfR12 and dxf2000.
The call to fileDlg->selectedFilter() always return the first filter added
 that match the pattern *.dxf
So I have written (in master branch) a method that can use "native" or qt fileDialog
You can activate it uncommenting the line
#define USEQTDIALOG 1
and the file dialog works as expected (in OS+KDE)

Dxli: I send a patch to 1.0.0 branch switching these lines.

Cheers,
Rallaz