summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/app.c b/src/app.c
index 84066c8e..4365f77d 100644
--- a/src/app.c
+++ b/src/app.c
@@ -124,7 +124,6 @@ struct Impl_App {
124 int sleepTimer; 124 int sleepTimer;
125#endif 125#endif
126 iAtomicInt pendingRefresh; 126 iAtomicInt pendingRefresh;
127 int tabEnum; /* IDs for new tabs */
128 iBool isLoadingPrefs; 127 iBool isLoadingPrefs;
129 iStringList *launchCommands; 128 iStringList *launchCommands;
130 iBool isFinishedLaunching; 129 iBool isFinishedLaunching;
@@ -722,7 +721,6 @@ static void init_App_(iApp *d, int argc, char **argv) {
722 d->certs = new_GmCerts(dataDir_App_()); 721 d->certs = new_GmCerts(dataDir_App_());
723 d->visited = new_Visited(); 722 d->visited = new_Visited();
724 d->bookmarks = new_Bookmarks(); 723 d->bookmarks = new_Bookmarks();
725 d->tabEnum = 0; /* generates unique IDs for tab pages */
726 init_Periodic(&d->periodic); 724 init_Periodic(&d->periodic);
727#if defined (iPlatformAppleDesktop) 725#if defined (iPlatformAppleDesktop)
728 setupApplication_MacOS(); 726 setupApplication_MacOS();
@@ -1602,7 +1600,6 @@ iDocumentWidget *newTab_App(const iDocumentWidget *duplicateOf, iBool switchToNe
1602 else { 1600 else {
1603 doc = new_DocumentWidget(); 1601 doc = new_DocumentWidget();
1604 } 1602 }
1605 setId_Widget(as_Widget(doc), format_CStr("document%03d", ++d->tabEnum));
1606 appendTabPage_Widget(tabs, as_Widget(doc), "", 0, 0); 1603 appendTabPage_Widget(tabs, as_Widget(doc), "", 0, 0);
1607 iRelease(doc); /* now owned by the tabs */ 1604 iRelease(doc); /* now owned by the tabs */
1608 addChild_Widget(findChild_Widget(tabs, "tabs.buttons"), iClob(newTabButton)); 1605 addChild_Widget(findChild_Widget(tabs, "tabs.buttons"), iClob(newTabButton));