Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KSysGuard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
KSysGuard
Commits
26688b25
Commit
26688b25
authored
Nov 09, 2017
by
Harald Sitter
🕵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace tabs with spaces for style consistency
parent
0ad10ec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gui/Workspace.cpp
gui/Workspace.cpp
+4
-4
No files found.
gui/Workspace.cpp
View file @
26688b25
...
...
@@ -9,7 +9,7 @@
published by the Free Software Foundation; either version 2 of
the License or (at your option) version 3 or any later version
accepted by the membership of KDE e.V. (or its successor approved
by the membership of KDE e.V.), which shall act as a proxy
by the membership of KDE e.V.), which shall act as a proxy
defined in Section 14 of version 3 of the license.
This program is distributed in the hope that it will be useful,
...
...
@@ -143,7 +143,7 @@ void Workspace::newWorkSheet()
mSheetList
.
append
(
sheet
);
setCurrentIndex
(
indexOf
(
sheet
));
connect
(
sheet
,
&
WorkSheet
::
titleChanged
,
this
,
&
Workspace
::
updateSheetTitle
);
this
,
&
Workspace
::
updateSheetTitle
);
}
}
void
Workspace
::
contextMenu
(
int
index
,
const
QPoint
&
point
)
{
...
...
@@ -326,8 +326,8 @@ bool Workspace::restoreWorkSheet( const QString &fileName, bool switchToTab)
QString
baseName
=
fileName
.
right
(
fileName
.
length
()
-
fileName
.
lastIndexOf
(
'/'
)
-
1
);
foreach
(
WorkSheet
*
sheet
,
mSheetList
)
{
if
(
sheet
->
fileName
()
==
baseName
)
return
false
;
//Don't add the same sheet twice
if
(
sheet
->
fileName
()
==
baseName
)
return
false
;
//Don't add the same sheet twice
}
WorkSheet
*
sheet
=
new
WorkSheet
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment