Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 483354 Details for
Bug 269110
app-text/coolreader3: reader of fictionbook texts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to allow to save cr3.ini file in the user home directory after first run
cr3ini.diff (text/plain), 1.50 KB, created by
Sergey Torokhov
on 2017-07-12 13:58:15 UTC
(
hide
)
Description:
Patch to allow to save cr3.ini file in the user home directory after first run
Filename:
MIME Type:
Creator:
Sergey Torokhov
Created:
2017-07-12 13:58:15 UTC
Size:
1.50 KB
patch
obsolete
># Patch to allow creating cr3.ini file in the home directory of user ># instead to trying save it in /usr/share/cr3/cr3.ini ># Bug: https://sourceforge.net/p/crengine/bugs/179/ ># Patch was proposed by "Olexandr" (see bug report) >diff --git a/cr3qt/src/mainwindow.cpp b/cr3qt/src/mainwindow.cpp >index 142242a..0401f71 100644 >--- a/cr3qt/src/mainwindow.cpp >+++ b/cr3qt/src/mainwindow.cpp >@@ -77,8 +77,8 @@ MainWindow::MainWindow(QWidget *parent) > #endif > QString cacheDir = homeDir + "cache"; > QString bookmarksDir = homeDir + "bookmarks"; >- QString histFile = exeDir + "cr3hist.bmk"; >- QString histFile2 = homeDir + "cr3hist.bmk"; >+ QString histFile2 = exeDir + "cr3hist.bmk"; >+ QString histFile = homeDir + "cr3hist.bmk"; > QString iniFile2 = exeDir + "cr3.ini"; > QString iniFile = homeDir + "cr3.ini"; > QString cssFile = homeDir + "fb2.css"; >@@ -92,9 +92,13 @@ MainWindow::MainWindow(QWidget *parent) > ldomDocCache::init( qt2cr( cacheDir ), DOC_CACHE_SIZE ); > ui->view->setPropsChangeCallback( this ); > if ( !ui->view->loadSettings( iniFile ) ) >- ui->view->loadSettings( iniFile2 ); >+ if ( !ui->view->loadSettings( iniFile2 ) ) >+ ui->view->saveSettings( iniFile ); >+ > if ( !ui->view->loadHistory( histFile ) ) >- ui->view->loadHistory( histFile2 ); >+ if ( !ui->view->loadHistory( histFile2 ) ) >+ ui->view->saveHistory( histFile ); >+ > if ( !ui->view->loadCSS( cssFile ) ) > ui->view->loadCSS( cssFile2 ); > #if ENABLE_BOOKMARKS_DIR==1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 269110
:
195559
|
200845
|
236199
|
236203
|
236205
|
236311
|
236401
|
236407
|
236493
|
236495
|
236497
|
239825
|
239977
|
239979
|
249187
|
289807
|
290581
|
290583
|
294187
|
294201
|
309417
|
341284
|
355380
|
425978
|
425980
|
451078
|
451080
| 483354 |
483356
|
483358
|
490934
|
490936
|
490970
|
490972
|
490976