View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002991 | Scribus | OS-Win32 | public | 2006-01-10 17:16 | 2006-12-23 17:53 |
Reporter | jo-hannes | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.3cvs | ||||
Fixed in Version | 1.3.4cvs | ||||
Summary | 0002991: Path separators should be a backslash on windows | ||||
Description | not a slash like in unix | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
Translation between path separators is done by qt. Internally all paths uses unix-style separators. So should affect display only. |
2006-01-10 20:04
|
|
|
I'm writting QDir::convertSeparators in loading/saving. |
|
jghali, can you notice me when you finish next win build to test it, please? |
|
Seems to work ok except one little thing : when you open a new file, the file is still displayed with slashes in recent file menu (see recent_files_slashes.png ) |
2006-01-12 14:29
|
|
|
the filename in the title bar is also wrong |
|
[20:57:36] <subik> I have some issue with 2991 (/ in windows dirs) [20:57:45] <subik> I cannot test it on linux [20:58:05] <subik> there is a lot of "/" magic [20:59:00] <subik> void ScribusMainWindow::startUpDialog() [20:59:08] <subik> bool ScribusMainWindow::slotFileNew() [21:00:28] <subik> there should be QDdir::convertSeparators() wrapper around QString fileName definition. Can you dive in it now? [21:04:00] <jghali> subik: excuse me, was discussing with jo-hannes, going to do it now [21:05:25] <subik> no prob ;) [21:05:50] <subik> but beware. it can break all document loading imho [21:07:30] <jghali> subik: i think 2991 should not be qualified as major: does not prevent scribus from wroking [21:09:42] <jghali> if it were me i would have waited 1.3.2 release [21:19:25] <subik> jghali: ok, we will fix it after release... imho there we will have to rewrite some ugly hacks with file path done by QString::find() to QFile and QDir :-/ |
|
changing ScribusMainWindow::updateRecent and ScribusMainWindow::removeRecent fix the issue a bit more void ScribusMainWindow::updateRecent(QString fn) { QString platfname = QDir::convertSeparators(fn); if (RecentDocs.findIndex(platfname) == -1) { RecentDocs.prepend(platfname); fileWatcher->addFile(fn); } else { RecentDocs.remove(platfname); RecentDocs.prepend(platfname); } rebuildRecentFileMenu(); } void ScribusMainWindow::removeRecent(QString fn) { QString platfname = QDir::convertSeparators(fn); if (RecentDocs.findIndex(platfname) != -1) { RecentDocs.remove(platfname); if (!fileWatcher->isActive()) fileWatcher->removeFile(fn); } rebuildRecentFileMenu(); } |
|
void ScribusMainWindow::loadRecent(QString fn) { QFileInfo fd(fn); if (!fd.exists()) { RecentDocs.remove(QDir::convertSeparators(fn)); fileWatcher->removeFile(fn); rebuildRecentFileMenu(); return; } loadDoc(fn); } |
|
Committed that stuff Jean noted |
|
still wrong in - preferences (docs, icc profiles...) and external tools and plugin-list. - manage pictures - open file / save file |
|
now there are multiple entries of the same files in the recent files menu on windows. |
|
you should reset the recent file list by erasing RECENT elements in scribus13.rc, have seen the same phenomenon, but it disappeared after doing so. |
|
that works, thx. |
|
hmm, does not work so well, when closing and opening again, duplicates really appear in recent file list... |
|
well, after more testing, it has appeared that a non complete fix has more chance to trigger bugs than anything else. Committed changes have been reverted. Safer to wait for 1.3.2 release... Really... |
|
In surprising places things that appear to be "just for display" may be used for I/O, stored in prefs, etc as well. I was bitten by this, though not with file separators, when renaming some GUI text in the PDF dialog. It turned out that the combo box text ended up in the PDF file... Whenever you change a GUI element's display you'll probably have to find all places in the code that access its value (ie the text of a combo box item) and make sure they don't send it anywhere unexpected and silly. |
|
Fixed recent file menu. |
|
making non-private as windows version has been released. |
2006-07-04 09:19
|
|
|
Please don't use ./ or ../ because it will surely miss the targeted audience (see the attached screenshot linux_paths_on_win_1.png) |
|
-file/dir dialogs (CustomFDialog?) -print dialog/file: (print is different to file dialog tho.. custom dialog, dont forget alternative print command too for print dialog) -new file dialog, open existing doc *title bar file name* *windows menu* -prefs->general directories -prefs->fonts additional paths -prefs->external apps *warning for unsaved doc* -export as image dialog |
|
Most of the issue should be now fixed in 1.3.4cvs, except file dialogs which are not fixable without patching qt. |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-01-10 17:16 | jo-hannes | New Issue | |
2006-01-10 17:36 | jghali | Note Added: 0008009 | |
2006-01-10 20:01 |
|
Assigned To | => ltning |
2006-01-10 20:01 |
|
Status | new => assigned |
2006-01-10 20:04 |
|
File Added: win32filepaths.png | |
2006-01-10 20:41 | cbradney | Assigned To | ltning => |
2006-01-11 11:57 | subik | Assigned To | => subik |
2006-01-11 12:00 | subik | Note Added: 0008031 | |
2006-01-12 11:11 | subik | Note Added: 0008041 | |
2006-01-12 14:29 | jghali | Note Added: 0008043 | |
2006-01-12 14:29 | jghali | File Added: recent_files_slashes.png | |
2006-01-12 17:28 | jo-hannes | Note Added: 0008044 | |
2006-01-12 20:34 | subik | Note Added: 0008045 | |
2006-01-12 20:44 | jghali | Severity | major => minor |
2006-01-12 21:34 | jghali | Note Added: 0008046 | |
2006-01-12 22:50 | jghali | Note Added: 0008047 | |
2006-01-12 22:55 | cbradney | Note Added: 0008048 | |
2006-01-13 08:02 | jo-hannes | Note Added: 0008054 | |
2006-01-13 08:04 | jo-hannes | Note Edited: 0008054 | |
2006-01-13 13:50 | jo-hannes | Note Added: 0008062 | |
2006-01-13 14:18 | jghali | Note Added: 0008063 | |
2006-01-13 14:35 | jo-hannes | Note Added: 0008064 | |
2006-01-13 15:31 | jghali | Note Added: 0008066 | |
2006-01-14 14:40 | jghali | Note Added: 0008083 | |
2006-01-14 20:53 |
|
Note Added: 0008087 | |
2006-01-15 14:09 |
|
Product Version | 1.3.2cvs => 1.3.3cvs |
2006-02-03 00:08 | cbradney | Note Added: 0008536 | |
2006-02-03 00:13 | cbradney | Relationship added | parent of 0003169 |
2006-02-03 22:26 | jo-hannes | Note Added: 0008555 | |
2006-02-03 22:26 | jo-hannes | View Status | private => public |
2006-07-04 08:10 | jo-hannes | Relationship added | has duplicate 0003969 |
2006-07-04 09:19 | mhanski | File Added: linux_paths_on_win_1.png | |
2006-07-04 09:21 | mhanski | Note Added: 0011788 | |
2006-08-20 22:50 | cbradney | Relationship added | child of 0003964 |
2006-08-20 23:19 | Tsoots | Note Added: 0012250 | |
2006-08-20 23:28 | Tsoots | Note Edited: 0012250 | |
2006-08-20 23:28 | Tsoots | Note Edited: 0012250 | |
2006-08-20 23:29 | Tsoots | Note Edited: 0012250 | |
2006-08-20 23:32 | Tsoots | Note Edited: 0012250 | |
2006-08-20 23:35 | Tsoots | Note Edited: 0012250 | |
2006-11-21 21:43 | jghali | Assigned To | subik => jghali |
2006-11-24 19:41 | jghali | Note Added: 0013551 | |
2006-12-05 18:44 | jghali | Status | assigned => resolved |
2006-12-05 18:44 | jghali | Fixed in Version | => 1.3.4cvs |
2006-12-05 18:44 | jghali | Resolution | open => fixed |
2006-12-23 17:52 | cbradney | Status | resolved => closed |
2014-10-08 18:38 | Kunda | Category | Win32 => OS-Win32 |