1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-07 06:55:52 +01:00
Commit Graph

215 Commits

Author SHA1 Message Date
James Crook
028ed19d90 Sync with DarkAudacity 2017-04-02 23:07:13 +01:00
Paul Licameli
1552ff188f When opening a file into a new project, delete the project on failure 2017-03-21 14:11:28 -04:00
Paul Licameli
f508493561 more guarded calls 2017-03-17 17:53:02 -04:00
Paul Licameli
a1bc6948f4 Define application-level exception handler of last resort. 2017-03-17 17:53:00 -04:00
Paul Licameli
1126925438 Remove naked malloc (or similar) and free in: various 2017-03-17 17:52:54 -04:00
Paul Licameli
6a57987f88 safer use of weak pointer 2017-03-17 17:52:34 -04:00
Paul Licameli
3e51fd5078 fix some comments 2017-03-17 17:52:22 -04:00
James Crook
fc42fd9b0d Bug 1597 - Tweak: make version check on welcome user-initiated.
The welcome screen now has an extra prelude for Alphas, and as result no longer needs to force a version check onto our website.  Users can still do that by clicking "check online".

I've also rearranged the version check code a little, so that there is better reuse.  E.g. we can change the URL in just one place in the code.
2017-02-28 19:05:06 +00:00
James Crook
c53e2dbb77 Bug 1597 - Enh: Greater clarity over status of versions needed
- For ALPHA builds we do a check version with the Welcome screen (if welcome screen is enabled).
- A 'Check Online' in the About box provides a new route to check version
- Check Version now passes CommitId and Build Date/Time to identify a version.

To actually close the bug we need the javascript on the server page to put up informative messages.
2017-02-25 23:00:39 +00:00
Paul Licameli
a05d039055 Bug1567: intermittent failure to load libraries, plugins on Sierra...
... At startup, spawn a copy process in main() and crash it at once.  The
child process continues.  (The fix was ineffective when the parent continued
and the child crashed.)

Re-activiation of the application is also needed or else the windows are
hidden behind other applications.

Another sleep when closing a project, to fix occurrences of the bug caused by
closing of a project window without saving changes.
2017-01-25 22:15:02 +00:00
James Crook
e65d0ca77d Bug 1538 - Mac: "Audacity > Quit audacity" does not have Audacity capitalised
This was caused by using the #define AUDACITY_NAME which had changed to use
lower case 'a' in Audacity.
2017-01-04 14:46:15 +00:00
James Crook
90738ce2ad Create temporary directory recursively + Reduced search path.
Previously this could/would fail to create a temporary directory if the earlier
components in the path did not exist.  The user would then be prompted
unnecessarily for a location to store temporary files.

Also now disallow blank as a temporary directory name.

Also no longer search entire dmg for plug ins.  Just search the app itself.
2017-01-03 15:35:22 +00:00
Paul Licameli
a6bec5b195 Bug1561, addendum: should still quit after benchmark from cmd line 2016-12-25 20:07:43 -05:00
Paul Licameli
426cb9c40c Bug1561: delay the recovery dialog until after application init 2016-12-19 17:56:52 -05:00
James Crook
f229aab58a Bug 1329 - Adjustment: Part of the fix only applies to OSX; No longer apply to Linux too.
Adjustment proposed/tested by Steve Daulton.
2016-12-06 12:27:42 +00:00
Paul Licameli
ba263d0779 Bug1329: not wholly satisfactory fix...
... Partial reversion of commit 2e8ee5fe75

Now, if you open an effect dialog, Return key will apply it.  But, if you
cycle among windows with alt+f6, then the focus moves among the controls in
the effect dialog, and I don't know how to prevent that.

At least so it is in Mac.  I have not verified it with Linux.
2016-12-03 20:01:16 -05:00
Paul Licameli
ea1015596c Bug1511: REBUILD WXWIDGETS: Mac Quit via tooldock doesn't crash...
... in case at least three projects are open, or skip save prompts either,
in case at least two projects with unsaved changes are open.
2016-10-03 14:38:56 -04:00
Paul Licameli
2e8ee5fe75 Bugs 868, 1196 again: Fix alt-f6 cycle but not changing button focus
Mac and Linux problem only.

See commits 58e3f3da83
and a00f866b54
2016-09-28 11:54:17 -04:00
James Crook
086ddb62c1 Fix compiler warning "unknown escape sequence".
Debugger shows that this change has zero effect on the string (and it fixes the warning too).
2016-09-22 19:29:52 +01:00
windinthew
950f62a548 Apply Mac fixes for bugs 868, 1196 to Linux 2016-09-22 18:56:26 +01:00
Paul Licameli
d783762737 Remove unnecessary std::move in return statements...
... and comment where it is necessary.
2016-09-15 07:39:46 -04:00
James Crook
65c7e8051a ThomasFeher - Unused parameters clean up. 2016-09-11 20:31:49 +01:00
James Crook
545d741eb2 Make Audacity source more like DarkAudacity source. 2016-09-11 13:03:37 +01:00
James Crook
06b623bbb1 Bug 1220 - (Residual) OS X: Exclude directories with substring /tmp/ in them. 2016-09-03 17:49:57 +01:00
James Crook
9787bf7978 Bug 1220 - (Residual) OS X: Audacity's temp dir defaults to location that is cleaned up on reboot. 2016-09-01 22:09:37 +01:00
Paul Licameli
15a60bde4b Fix linux debug complaints of missing thread shut-down...
... caused by commit b47bcb548e
2016-08-15 21:21:09 -04:00
Paul Licameli
c9204af7fe Rewrite functions managing the missing block file...
... removing one ref and deref of block files.

This unblocks a future development that will manage all block files with
std::shared_ptr.
2016-08-15 13:04:19 -04:00
Paul Licameli
fe5ab9a462 Remove the naked new in allocation of AudacityProject 2016-08-14 15:24:59 -04:00
Paul Licameli
bf1e8a1227 One more safenew for the logger object 2016-08-13 10:37:52 -04:00
Paul Licameli
11305b956f Use make_unique for wxMenu objects 2016-08-10 11:05:52 -04:00
Paul Licameli
8572b425c1 More safenew 2016-08-10 11:05:51 -04:00
Paul Licameli
fec4069d9d Some uses of Destroy_ptr let us remove some naked news 2016-08-10 11:05:51 -04:00
Paul Licameli
b47bcb548e Remove some naked new amd delete in: AudioIO 2016-08-08 07:51:27 -04:00
Paul Licameli
942c62b6f6 Remove some naked new amd delete in: various 2016-08-08 07:51:24 -04:00
Paul Licameli
186679b3a6 RAII for locking the all-projects mutex 2016-08-08 07:40:16 -04:00
James Crook
d6fb30538f Bug 1377 - Crash after Audacity starts and low disk space warning appears
Very low risk workaround implemented - close and dispose of the splash screen before creating project.
It is pretty clear it is the interaction between two dialogs during AppInit that is the root cause of the problem.
A high risk solution would involve delving into and fixing wx3 internals.

Splash screen will now disappear fractionally sooner than before - the time it takes to create an empty project.
2016-07-09 22:36:48 +01:00
James Crook
0f597ae98e Bug 1220: Backslashes wrong for Mac
On Mac the path separator is different.  so conditional code to handle that.
2016-07-06 16:17:40 +01:00
James Crook
07090e691b Bug 1220: Residuals.
Space required in path name.  Also force old names that were set to temp directory to update to ones that aren't on Mac too.
Something to test on Mac -> What happens if suggested directory does not exist?
2016-07-06 16:01:23 +01:00
James Crook
eb32438907 Bug 1220 - OS X: Audacity's temp dir defaults to location that is cleaned up on reboot
Untested on Mac (I don't have one).  Might perhaps even fail to compile.  But 1220 is a P1.  Important enough for our schedule that we clear it now that I am happy enough to risk a 'blind patch'.
2016-07-06 12:10:26 +01:00
Paul Licameli
107507e125 Revert "fix mac build"
This reverts commit 2910cc2a6f.
2016-06-25 22:17:24 -04:00
Paul Licameli
2910cc2a6f fix mac build 2016-06-25 22:15:45 -04:00
Paul Licameli
58e3f3da83 Bug1196: Don't trap focus in modal dialogs in alt+f6 cycle
This fix is good for Mac only, but maybe the same could apply to Linux.

See also commit a00f866b54

That commit fixed, e.g., alt+f6 cycling between the main window and the splash
dialog when starting Audacity.  However, alt+tab to switch applications, then
again to return to Audacity, still trapped you.

This further change eliminates the other trap.

Perhaps the conditional compilation #ifdef __WXMAC__ in these two commits
could be broadened to cover Linux and the bug will be fixed there too.
2016-06-21 18:29:00 -04:00
Paul Licameli
5e95491bfc Enh 66 again: do not make duplicate About dialogs on Mac 2016-06-20 19:15:05 -04:00
Paul Licameli
f3903276c9 Enh66: About dialog is modeless on Mac, consistent with other apps 2016-06-20 12:41:09 -04:00
Paul Licameli
fd9d6a8fcf Set selection whenever scrub/seek stops by any means besides ESC key 2016-06-06 01:45:54 -04:00
Paul Licameli
b0d2f38786 ESC leaves scrubbing even when clicked only; disable scrub menu items when...
... another project is playing
2016-04-26 09:02:38 -04:00
Paul Licameli
1fe0bbf7dc Uncheck scrubbing menu items whenever scrub stops (ESC key, Stop button, other) 2016-04-24 11:59:01 -04:00
Paul Licameli
81fae8d71c Rework the ESC key to stop playback as an application event handler...
... So it does not depend on the focused window, and can work when selection
toolbar has focus.  But TrackPanel's escape handling may still take precedence
over it.
2016-04-20 15:34:49 -04:00
Paul Licameli
f00144e9a5 Sweep for filename copying: various 2016-04-10 22:26:28 -04:00
Paul Licameli
f94b3b3afa Add some const qualifiers to BlockFile methods 2016-04-10 21:05:20 -04:00