Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 401596 Details for
Bug 531108
www-client/qtweb-3.8.5 does not store imported bookmarks
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch correcting storage location for Unix systems
datalocation.patch (text/plain), 1.64 KB, created by
Christian Apeltauer
on 2015-04-19 09:31:15 UTC
(
hide
)
Description:
Patch correcting storage location for Unix systems
Filename:
MIME Type:
Creator:
Christian Apeltauer
Created:
2015-04-19 09:31:15 UTC
Size:
1.64 KB
patch
obsolete
>diff -Naur QtWeb-b108.orig/src/browserapplication.cpp QtWeb-b108/src/browserapplication.cpp >--- QtWeb-b108.orig/src/browserapplication.cpp 2013-09-09 14:38:29.000000000 +0200 >+++ QtWeb-b108/src/browserapplication.cpp 2015-04-18 20:33:45.000000000 +0200 >@@ -240,12 +240,12 @@ > if (!tested_ok || !is_writable) > { > // Copy settings from base template to temporary storage >- QDir temp_dir(QDir::temp()); >+ QDir temp_dir(dataLocation()); > bool res = temp_dir.mkdir(settings.organizationName()); > res = temp_dir.cd(settings.organizationName()); > res = QFile::copy( settings.fileName(), temp_dir.absolutePath() + QDir::separator() + settings.applicationName() + ".ini" ); > // Change path to settings to the temp storage >- QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, QDir::temp().tempPath()); >+ QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, dataLocation()); > } > > } >@@ -932,17 +932,7 @@ > > QString BrowserApplication::dataLocation() > { >- if (s_portableRunMode) >- { >- QDir dir(QCoreApplication::applicationDirPath()); >- if (!dir.exists("QtWebCache")) >- if (!dir.mkdir("QtWebCache")) >- return ""; >- >- return QCoreApplication::applicationDirPath()+ "/QtWebCache"; >- } >- else >- return QDesktopServices::storageLocation(QDesktopServices::DataLocation); >+ return QDesktopServices::storageLocation(QDesktopServices::DataLocation); > } > > QString BrowserApplication::downloadsLocation(bool create_dir)
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 531108
: 401596