Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r39 - trunk/java/ch/idok/qtgui

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r39 - trunk/java/ch/idok/qtgui


Chronological Thread 
  • From: "Apache" <apache AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r39 - trunk/java/ch/idok/qtgui
  • Date: Tue, 11 Mar 2008 16:04:20 +0100
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: huebner AT PSI.CH
Date: Tue Mar 11 16:04:20 2008
New Revision: 39

Log:
Resolved Issue 153 "File name suggestion in save document dialog"

A file name will now be suggested using the repPath.getDocumentID

Modified:
trunk/java/ch/idok/qtgui/MainWindow.java

Modified: trunk/java/ch/idok/qtgui/MainWindow.java
==============================================================================
--- trunk/java/ch/idok/qtgui/MainWindow.java (original)
+++ trunk/java/ch/idok/qtgui/MainWindow.java Tue Mar 11 16:04:20 2008
@@ -612,7 +612,8 @@
return;
RepositoryPath repPath = (RepositoryPath) selectedDocItem_.data(0,
Qt.ItemDataRole.UserRole);
- String f = QFileDialog.getSaveFileName(null, "Save document as");
+ String nameSuggestion = new String
(repPath.getDocumentId().toString().split("/")[1]);
+ String f = QFileDialog.getSaveFileName(null, "Save document
as",nameSuggestion);
if (f == null || f.equals(""))
return;
FileOutputStream os;



  • [idok-commit] idok commit r39 - trunk/java/ch/idok/qtgui, Apache, 03/11/2008

Archive powered by MHonArc 2.6.19.

Top of Page