Commit Graph

18 Commits

Author SHA1 Message Date
Kurt Hindenburg
b4b4a502bf More changes to QLatin1String, QLatin1Char and QStringLiteral 2017-05-07 14:25:59 -04:00
Kurt Hindenburg
aaee4c713c Check to verify we have write permissions when saving profiles
Summary:
Use custom dialog instead of KConfig's generic vague one.

BUG: 378784

Differential Revision: https://phabricator.kde.org/D5519
2017-04-27 10:26:42 -04:00
Kurt Hindenburg
eade05a4bd Do not specify Qt modules in includes 2017-04-26 21:33:34 -04:00
Kurt Hindenburg
2395f8fabb remove QDebug include 2016-07-03 12:28:48 -04:00
Kurt Hindenburg
b9261c58ab Write profile changes to Konsole's location, not KPart's app
Thanks to Wolfgang Bauer (wbauer tmo at) for patch

REVIEW:128342
BUG: 364336
2016-07-03 12:26:05 -04:00
Kurt Hindenburg
b8b1600947 Simplify saving of new/changed profiles.
All new and changed profiles are saved under user's local location.
Since Konsole now no longers ships w/ any profiles there should be less
confusion and issues.
2015-09-13 21:12:23 -04:00
Kurt Hindenburg
44457f8e37 Fix write locations for konsole's files
QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation
apparently doesn't include an / at the end.
2014-10-28 08:53:44 -04:00
Montel Laurent
5d4cda3e2f kdelibs4support-- 2014-10-18 13:03:41 +02:00
Michal Humpula
15d09f9161 port from KStandardDirs to QStandardPaths
REVIEW: 120498
2014-10-11 14:34:15 +02:00
Kurt Hindenburg
69dcbd3406 astyle fixes - spaces/{ 2012-09-02 17:28:43 -04:00
Jekyll Wu
6fa0121b8e When saving profile, always use its untranslated name as filename
An internal property is introduced to record the untranslated name.
When saving profile into disk, always refer to that untranslated name
to get the filename.

This extra consideration is intended to deal with the situation when the
profile's contents are i18nized. The typical example is the "Shell" profile
shipped by default.

BUG: 250506
FIXED-IN: 4.9.0
2012-05-16 01:10:04 +08:00
Kurt Hindenburg
ad52474e0c minor style changes - remove spaces 2012-05-13 12:33:35 -04:00
Kurt Hindenburg
bee9aa8f78 minor style fixes - remove empty lines start/end code blocks 2012-05-13 10:08:05 -04:00
Kurt Hindenburg
9f5877bdfc minor whitespace style changes 2012-05-13 08:51:27 -04:00
Jekyll Wu
e93112ffa6 Improve the logic for deciding the saving localtion of profile
The main change is for ad-hoc profiles which are not under standard
locations, konsole tries to save the modification to its exising path
instead of under $KDEHOME

Exmaple: konsole --profile $HOME/konsole/sample.profile
2012-05-04 15:25:51 +08:00
Jekyll Wu
7c99506e5f Just #include what is needed 2012-04-19 20:02:55 +08:00
Jekyll Wu
891bc2bc1d Rename: info ==> profile 2012-03-19 18:47:19 +08:00
Kurt Hindenburg
4dae2895bb Separate the profile reader/writer to their own file 2012-03-16 11:14:05 -04:00