[Qt-interest] getSaveFileName not getting overwriting confirmation dialog

Constantin Makshin dinosaur-rus at users.sourceforge.net
Wed Jun 10 18:35:05 CEST 2009


I've tested getSaveFileName() on my system (Debian GNU/Linux with Fluxbox  
as a WM) and it works as expected. So the problem seems to be in the KDE  
integration plugin.

On Wed, 10 Jun 2009 01:17:00 +0400, Álvaro Morais  
<alvarommorais at gmail.com> wrote:
> In debugging I'm getting this messages:
> 	
> <unknown program name>(14890)/ findLibraryInternal: plugins should
> not have a 'lib' prefix: "libkfilemodule.so"
> <unknown program name>(14890)/ KPluginLoader::load: The plugin
> "libkfilemodule" doesn't contain a kde_plugin_verification_data
> structure
>
> Probably a gentoo  package issue.
>
> A Terça 09 Junho 2009 22:05:11, você escreveu:
>> Of course.
>>
>> Linux GENTOO-MULTI-64 2.6.29-gentoo-r5-custom #1 SMP PREEMPT
>> Sun May 31 13:13:09 WEST 2009 x86_64 Intel(R) Core(TM)2 Duo
> CPU
>> E6750 @ 2.66GHz GenuineIntel GNU/Linux
>>
>> gcc (Gentoo 4.3.3-r2 p1.2, pie-10.1.5) 4.3.3
>> glibc version 2.10.1
>> Qt Version: 4.5.1
>>
>> In the meantime I will set DontConfirmOverwrite and add a custom
>> confirmation dialog.
>>
>> A Terça 09 Junho 2009 21:58:37 Constantin Makshin escreveu:
>> > Documentation says "By default confirmation is requested" so
> this
>>
>> may be a
>>
>> > bug. Can you provide more information, like OS, Qt version, etc.?
>> >
>> > On Wed, 10 Jun 2009 00:38:35 +0400, Álvaro Morais
>> >
>> > <alvarommorais at gmail.com> wrote:
>> > > Dear all!
>> > >
>> > > I'm having a issue that I have to be sure before filling a bug
>>
>> report.
>>
>> > > Considering this:
>> > >
>> > > void Kpgen::saveLog()
>> > > {
>> > >     QString filename = QFileDialog::getSaveFileName(this,
> tr("Save
>> > > Log"),QDir::homePath(),tr("All Files (*.*);;Text Files (*.txt);;Log
>> > > Files (*.log)"));
>> > > ...
>> > > }
>> > > I'm not getting a confirmation dialog if I select an existing file.
>> > >
>> > > Shouldn't this present a confirmation dialog if I select a file that
>> > > exists?
>> > >
>> > > Thanks for your trouble

-- 
Constantin "Dinosaur" Makshin



More information about the Qt-interest-old mailing list