Summary: | when a .bib file is passed to KBibTex on startup, that file isn't selected in Open Files | ||
---|---|---|---|
Product: | [Applications] KBibTeX | Reporter: | glyphimor |
Component: | Loading/saving files | Assignee: | Thomas Fischer <fischer> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | NOR | ||
Version: | 0.9.1 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kbibtex/ce455dfd2ebb01b5685fb4a02615d95711f582a9 | Version Fixed In: | 0.9.2 |
Sentry Crash Report: |
Description
glyphimor
2020-02-04 20:29:44 UTC
I can confirm this bug. At the same time, I shall look into that, even if KBibTeX is launched without command line arguments, among the restored-open files the one gets activated that was active when KBibTeX's last session was closed. Please have a look at the following commit if it fixes your problem: https://commits.kde.org/clones/kbibtex/thomasfischer/kbibtex/b6d8cdda7f79c25798dd85ecdc59be89079c950f You can test this code without interfering with your default KBibTeX installation by following the "quick start" instructions: https://userbase.kde.org/KBibTeX/Development#Quick_Start_to_Run_KBibTeX_from_Git To test the Git version containing the fix for your bug, please run the following command: bash run-kbibtex.sh https://anongit.kde.org/clones/kbibtex/thomasfischer/kbibtex.git bugs/kde417164 YOURBIBFILENAME Tried it, works. Thank you! Git commit ce455dfd2ebb01b5685fb4a02615d95711f582a9 by Thomas Fischer. Committed on 06/02/2020 at 20:43. Pushed by thomasfischer into branch 'kbibtex/0.9'. File URLs passed by command line preceed over LRU At program start, bibliography files may be opened either because their filenames/URLs were passed as command line arguments or because they were open in the previous session. Until now, the actual file being shown to the user was one of the previously opened files as the list of recently opened files was read with a small delay (got referred for unrelated reasons). However, if a user invokes KBibTeX with a file name or URLs as argument, it is reasonable to assume that this file should be shown directly instead of any previously opened files (which still may get opened in the background). This commit also fixes the minor usability issue that if only previously opened files are to be restored (and no command line argument was given), the most recently used/opened bibliography file should be preferrably shown instead of an arbitary one. FIXED-IN: 0.9.2 M +1 -0 ChangeLog M +37 -13 src/program/openfileinfo.cpp M +0 -1 src/program/openfileinfo.h https://commits.kde.org/kbibtex/ce455dfd2ebb01b5685fb4a02615d95711f582a9 Git commit 85b14d2c74cd68cfca922dc8afa11ad7cd0ff234 by Thomas Fischer. Committed on 06/02/2020 at 20:59. Pushed by thomasfischer into branch 'master'. File URLs passed by command line preceed over LRU At program start, bibliography files may be opened either because their filenames/URLs were passed as command line arguments or because they were open in the previous session. Until now, the actual file being shown to the user was one of the previously opened files as the list of recently opened files was read with a small delay (got referred for unrelated reasons). However, if a user invokes KBibTeX with a file name or URLs as argument, it is reasonable to assume that this file should be shown directly instead of any previously opened files (which still may get opened in the background). This commit also fixes the minor usability issue that if only previously opened files are to be restored (and no command line argument was given), the most recently used/opened bibliography file should be preferrably shown instead of an arbitary one. Forward-port of commit f56c52e9baad7f6e5 from branch 'kbibtex/0.10' which in its turn is a forward-port of commit ce455dfd2ebb01b5685fb from branch 'kbibtex/0.9'. M +1 -0 ChangeLog M +37 -10 src/program/openfileinfo.cpp M +1 -1 src/program/openfileinfo.h https://commits.kde.org/kbibtex/85b14d2c74cd68cfca922dc8afa11ad7cd0ff234 Git commit b766c3eee5cd9c70dcf2f8c8bbbff0d8260d2fb8 by Thomas Fischer. Committed on 06/02/2020 at 21:00. Pushed by thomasfischer into branch 'kbibtex/0.10'. File URLs passed by command line preceed over LRU At program start, bibliography files may be opened either because their filenames/URLs were passed as command line arguments or because they were open in the previous session. Until now, the actual file being shown to the user was one of the previously opened files as the list of recently opened files was read with a small delay (got referred for unrelated reasons). However, if a user invokes KBibTeX with a file name or URLs as argument, it is reasonable to assume that this file should be shown directly instead of any previously opened files (which still may get opened in the background). This commit also fixes the minor usability issue that if only previously opened files are to be restored (and no command line argument was given), the most recently used/opened bibliography file should be preferrably shown instead of an arbitary one. Forward-port of commit ce455dfd2ebb01b5685fb from branch 'kbibtex/0.9'. M +1 -0 ChangeLog M +37 -10 src/program/openfileinfo.cpp M +1 -1 src/program/openfileinfo.h https://commits.kde.org/kbibtex/b766c3eee5cd9c70dcf2f8c8bbbff0d8260d2fb8 |