aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/TextEdit.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-07-03 19:49:16 +0000
committerSaturneric <[email protected]>2021-07-03 19:49:16 +0000
commitf551c5b1958e15fc81ce44a7d2e3165854a2ddef (patch)
tree0d190388f68999dfae2bcbadc37e1fc26d0a6f02 /src/ui/widgets/TextEdit.cpp
parentContinue to write new function. (diff)
downloadGpgFrontend-f551c5b1958e15fc81ce44a7d2e3165854a2ddef.tar.gz
GpgFrontend-f551c5b1958e15fc81ce44a7d2e3165854a2ddef.zip
Improve UI; Improve File Opera;
Diffstat (limited to 'src/ui/widgets/TextEdit.cpp')
-rw-r--r--src/ui/widgets/TextEdit.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/widgets/TextEdit.cpp b/src/ui/widgets/TextEdit.cpp
index 9ca1b578..643747ed 100644
--- a/src/ui/widgets/TextEdit.cpp
+++ b/src/ui/widgets/TextEdit.cpp
@@ -575,12 +575,12 @@ void TextEdit::slotFilePagePathChanged(const QString &path) {
QString mPath;
QFileInfo fileInfo(path);
QString tPath = fileInfo.path();
- if (path.size() > 16) {
- mPath = tPath.mid(tPath.size() - 16, 16).prepend("...");
+ if (path.size() > 18) {
+ mPath = tPath.mid(tPath.size() - 18, 18).prepend("...");
} else {
mPath = tPath;
}
- mPath.prepend("[File Browser]: ");
+ mPath.prepend("[File Browser] ");
mPath.append("/");
tabWidget->setTabText(index, mPath);
-} \ No newline at end of file
+}