Bug 468216

Summary: Yast S/W Mgmt, Export when user-packages.xml exists Prompts Twice for Overwrite
Product: [openSUSE] openSUSE 11.0 Reporter: David Rankin <drankinatty>
Component: YaST2Assignee: Thomas Göttlicher <tgoettlicher>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: tgoettlicher
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Rankin 2009-01-22 03:18:25 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-0.1 Firefox/3.0.5

Devs,

    When using yast software management to export user-packages.xml, if the user-packages.xml files already exists in the directory you have selected for export, you are prompted twice to overwrite. Once by the dialog itself, then something else is throwing up another dialog behind the directory select dialog that also prompts for overwrite.

    Obviously, you should only be prompted once.

Reproducible: Always

Steps to Reproduce:
1. open Yast software management and export user-packages.xml
2. open Yast software management and export user-packages.xml to the same dir
3.
Actual Results:  
Prompted by 2 separate dialogs to overwrite the file

Expected Results:  
Prompted once would have been pleanty

You don't need y2logs for this one...
Comment 1 Katarina Machalkova 2009-02-16 13:02:14 UTC
Tried all three UIs, only Qt seems to show the bug. The problem is in YQApplication::askForSaveFileName - it prompts for overwriting twice. 

The first prompt comes internally from Qt's QFileDialog, which request confirming overwrite by default. yast2-qt then adds its own handling of overwriting existing files just below, which becomes duplicate.

So either QFileDialog::DontConfirmOverwrite flag should be set and YaST's own handling can be kept, or it should be removed and error handling would be left solely up to QFileDialog class.
Comment 2 Thomas Göttlicher 2009-02-16 13:06:12 UTC
.

*** This bug has been marked as a duplicate of bug 46415 ***
Comment 3 Thomas Göttlicher 2009-02-16 13:41:37 UTC
duplicate of #464152

*** This bug has been marked as a duplicate of bug 464152 ***