mirror of
https://github.com/KDE/konsole.git
synced 2026-05-07 14:16:40 -04:00
Allow profile filenames to have multiple '.'s.
After this hostname.local.profile will work with --profile and --list-profiles. Also, the profile path file is checked if it is a directory. BUG: 250399 FIXED-IN: 4.6.3
This commit is contained in:
@@ -132,7 +132,11 @@ Profile::Ptr SessionManager::loadProfile(const QString& shortPath)
|
||||
|
||||
// add a suggested suffix and relative prefix if missing
|
||||
QFileInfo fileInfo(path);
|
||||
if ( fileInfo.suffix().isEmpty() )
|
||||
|
||||
if (fileInfo.isDir())
|
||||
return Profile::Ptr();
|
||||
|
||||
if ( fileInfo.suffix() != "profile" )
|
||||
path.append(".profile");
|
||||
if ( fileInfo.path().isEmpty() || fileInfo.path() == "." )
|
||||
path.prepend(QString("konsole")+QDir::separator());
|
||||
|
||||
Reference in New Issue
Block a user